Do I miss something when solve the o.d.e above with the following steps?
$2x\cos y \frac{dy}{dx} = 2 \sin y+(\cos y \frac{dy}{dx})^3$
Let $u=\cos y \frac{dy}{dx}$.
$2xu=2\sin y+u^3$
Taking the derivative w.r.t $x$, we have
$2u+2x\frac{du}{dx}=2\cos y\frac{dy}{dx}+3u^2\frac{du}{dx}=2u+3u^2\frac{du}{dx}$
$(2x-3u^2)\frac{du}{dx}=0$
Thus, $\frac{du}{dx}=0$ or $2x-3u^2=0$.
If $\frac{du}{dx}=0$, we have $\cos y\frac{dy}{dx}=C$. Here, if we solve this equation, we will get another constant besides $C$. But the general solution of the original first order o.d.e can only have one const. I wonder whether I miss something.
You would get farther in a more direct way by setting $u=\sin y$, $u'=\cos(y)\,y'$ so that then from your first transformation $$ 2xu'=2u+u'^3\iff u=xu'-\frac12u'^3 $$ which is a Clairaut differential equation with solution family $$ u=cx-\frac12c^3 $$ and singular solutions $$ x=\frac32u'^2\implies x\ge0\land u=\frac23xu'=\pm\left(\frac23x\right)^{3/2} $$