This question concerns a relationship between expectation and probability. Here is an elementary demonstration of the correct conclusion, which is that $X^2=Y^2$ almost surely: that is, the set on which $X^2\ne Y^2$ has zero probability.
Let $Z=|X-Y|$ and write $F_Z(z) = \Pr(Z\le z)$ for its distribution function. Since $F(z)=0$ when $z\lt 0,$ note that
$$0 = E[|X-Y|] = E[Z] = \int_{-\infty}^0 F_Z(z)\,\mathrm dz + \int_0^\infty (1-F_Z(z))\mathrm dz = \int_0^\infty (1-F_Z(z))\mathrm dz.$$
Because $1-F_Z(z) = \Pr(Z\gt z) \ge 0$ (the axiom of total probability), the right hand side implies $1-F_Z(z)=0$ almost surely on the domain $z\in [0,\infty);$ that is, because $F$ is non-decreasing, $F(z)=1$ for all $z\gt 0.$
Finally, because $F_Z$ is càdlàg,
$$\begin{aligned}
\Pr(X^2=Y^2) &\ge \Pr(X=Y) \\
&= \Pr(|X-Y|=0) \\
&= \Pr(|X-Y| \le 0) \\& = F_Z(0) \\
&= \lim_{z\to 0^+} F_Z(z)\\
&= \lim_{z\to 0^+} 1 = 1,
\end{aligned}$$
qed.