I have seen complicated arguments to establish whether $\mathbb Z$ extended by this or that radical is a UFD. They usually suppose that $u$ is a unit and then compute the reciprocal and then make arguments about each component being an integer. Some of them go by defining a norm and proving things about that. I'm a little confused about why these arguments are so elaborate when it seems to me that there is a very straight-forward argument in many cases. My guess is that I'm overlooking some important caveat in one of my steps but I'm not sure where.
Take for example $\mathbb Z[\sqrt{7}]$. To prove it's not a UFD I look at two factorizations of 6:
$$ 6=3\cdot 2 $$
$$ 6 = (\sqrt 7 - 1)(\sqrt 7 + 1) $$
I then argue that there is no unit (in fact no element at all) such that $3u=\sqrt 7-1$. Since $u=a+b\sqrt 7$ then we would need
$$ 3a = -1 $$
but this is not true for any $a\in\mathbb Z$. Of course the same argument could be used on any of $\pm 3,\pm 2$ on the left and $\pm (\sqrt 7-1),\pm (\sqrt 7+1)$ on the right.
Is there some logical error in saying that if $w+x\sqrt 7 = y+z\sqrt 7$ for integers $w,x,y,z$ then we must have $w=y$ and $x=z$?