Is there a word (like aphorism or metaphor) for someone trying to prove a point and doing the opposite? There just has to be.

"You've just proved my point" is enough.