I'm pretty sure my error is quite simple but I can't find it. For any $(x,y)$ of $\mathbf R^2,$
$$x=y \iff x^2=y^2 \iff \sqrt{x^2}=\sqrt{y^2} \iff -x=-y \text{ or} -x=y \text{ or } x=-y \text{ or } x=y.$$
Finally I find $x=y \iff -x=y \text{ or } x=-y$ between the two other good solutions.
I think it has something to do with the fact that I square $x$ and $y$ before square-rooting them (if you do $\sqrt{x}^2=\sqrt{y}^2$ all is ok), but idk why it doesn't work...