This question was brought up by a high school math teacher as a question on the SAT! I think I found the error in his logic which I wrote below, but I just wanted to be sure.
$\underline{\text{Note:}}$ Equation $(6)$ is a false conclusion to make as $x=3$ is not valid for equation $(1)$.
Assume equation $(1)$ one holds.
$\sqrt{x-2}=x-4\tag{1}$
$\sqrt{x-2}^2=(x-4)^2\tag{2}$
$x-2=x^2-8x+16\tag{3}$
$0=x^2-9x+18\tag{4}$
$0=(x-6)(x-3)\tag{5}$
$\text{So, 6 and 3 should be valid solutions to equation (1)} \tag{6}$
$\sqrt{x-2} \ge 0$ by definition.
So you have $\sqrt{x-2} = x-4 \ge 0$. So you have the information $x \ge 4$.
When you square both sides $x - 2 = (x-4)^2$ you lose that information so you must make a note to keep it.
So you $x-2 = (x-4)^2; x \ge 4$.
Keep going you end up with
$(x-6)(x-3) =0; x \ge 4$ so you final conclusion is:
$x =6$ or $x =3$ but $x \ge 4$.
So $x = 6$.
Extraneous solutions come in when you lose or ignore information you really already know. $\sqrt{x-2} = x-4$ is not the whole story. You also know $x -2 \ge 0$ and $x- 4 \ge 0$. Don't ignore that you know that. So a more accurate story is $\sqrt{x-2} = x-4 \ge 0$.