It's not about gender. It's about ostracism. You don't have to be female to be ostracised. You just have to have something, anything, that sets you apart from the crowd.
This is the societal control mechanism we have culturally evolved to ensure conformity and "strength" in groups. It is really, really, really fucking dangerous, and leads to fun shit like Nazism. It's also really powerful, and is the basis of nation states.
Ergo, the problem needs treating at its cause, which is a cultural illness, and is far from simple to treat. You cannot simply resolve one emergent aspect of it and then expect to treat each aspect the same way. You do not cut down a tree by plucking at its leaves.