I do not think that this make it better for the student. They still cheated, only instead of acquiring the actual answer they obtained the information whether their answer was correct. (Based on their knowledge of the situation.) So they acted unethically to gain an advantage, but instead sabotaged themselves.