You're right, if you imagine going with an anonymous scenario, where you do your work and your employer don't even know your gender, the gap would probably still be there.
If by chance the gender is actually taken into account by some shitty employer, this might be a solution to fix it, it could even help with other problems too, like sexual harassment or mobbing.