Solution 1:

Both solutions are equally valid (and indeed give the same solutions).

The fact that the curve is not a parabola is irrelevant. What matters is that the function has exactly two roots, at $-2$ and $4$. In fact you are expressing that $x=-2\lor x=4$ in a single go.