https://www.google.com/search?q=women+are+just+horribly+crue...
There's also culture at play. I don't know if men affectionately dissing their friends is universal but there's plenty of related things like:
In Japanese culture you don't brag about co-workers or family to outsiders. Outsiders you treat with respect. Insiders you don't. The fact that you don't get the more polite treatment is proof that you're an insider. It's a common scene in stories where someone asks to stop being treated like an outsider by specifically asking for the less polite language. You can also watch the ribbing man to man, man to woman, woman to man, woman to woman. I don't know if there is data on which is more common.