Given the equation $$\lvert2x\rvert=x-1,$$ rewriting the left-hand side as $\pm2x$ results in the (unique) solution set $\{-1,\frac13\},$ which fails to satisfy the equation.

(The equation has has extraneous but no actual solutions.)