\[ y'(x)^3-(y(x)-a)^2 (y(x)-b)^2=0 \] ✓ Mathematica : cpu = 0.409317 (sec), leaf count = 236
DSolve[-((-a + y[x])^2*(-b + y[x])^2) + Derivative[1][y][x]^3 == 0,y[x],x]
\[\left \{\left \{y(x)\to \text {InverseFunction}\left [-\frac {3 \sqrt [3]{a-\text {$\#$1}} \left (\frac {\text {$\#$1}-b}{a-b}\right )^{2/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{3},\frac {2}{3},\frac {4}{3},\frac {a-\text {$\#$1}}{a-b}\right )}{(b-\text {$\#$1})^{2/3}}\& \right ][x+c_1]\right \},\left \{y(x)\to \text {InverseFunction}\left [-\frac {3 \sqrt [3]{a-\text {$\#$1}} \left (\frac {\text {$\#$1}-b}{a-b}\right )^{2/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{3},\frac {2}{3},\frac {4}{3},\frac {a-\text {$\#$1}}{a-b}\right )}{(b-\text {$\#$1})^{2/3}}\& \right ]\left [-\sqrt [3]{-1} x+c_1\right ]\right \},\left \{y(x)\to \text {InverseFunction}\left [-\frac {3 \sqrt [3]{a-\text {$\#$1}} \left (\frac {\text {$\#$1}-b}{a-b}\right )^{2/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{3},\frac {2}{3},\frac {4}{3},\frac {a-\text {$\#$1}}{a-b}\right )}{(b-\text {$\#$1})^{2/3}}\& \right ]\left [(-1)^{2/3} x+c_1\right ]\right \}\right \}\] ✓ Maple : cpu = 0.216 (sec), leaf count = 126
dsolve(diff(y(x),x)^3-(y(x)-a)^2*(y(x)-b)^2=0,y(x))
\[y \left (x \right ) = a\]