What people don't get about that scene is that it wasn't a gay joke. It was a "You're a woman" joke being used against an insecure "macho" man (yes, it was meta). Still not appropriate, but it wasn't a jab at his sexuality; It was impugning his masculinity.

Also Pete was 16 and teenagers are dicks.