Yeah I think people tend to do this in general when someone talks about a bad experience - they bring up one of their own instead of really empathizing. And maybe there's some tribalism involved - they are both of the "male" tribe so they feel they need to defend or justify their tribe or attack the other tribe. I don't know. It sucks. I do think that men perhaps have fewer outlets or support to complain about a woman's bad behaviour so maybe it comes out when the topic of relationships comes up.
Maybe you could say something like "I'm just wanting to talk about this one specific guy's behavior right now, rather than get into the men vs. women" or some such thing.