Isn't that why you would run ANOVA tests since the sample sizes are different? Like that's what they're designed for, so you don't have people go "Well the sample sizes aren't equal" in situations where you can't really force an equal sample size.
But I would also love to hear your solution for these problems outside of a vague "We need to encourage women", because that really does nothing but push things in a "Well this would be nice but if things don't turn out that way then oh well" way. You can hire more women and then have programs that help them catch up as the societal issues are dealt with. If you go strictly on merit then the group with the advantage will just keep that advantage since they already have the tools.
But I would also love to hear your solution for these problems outside of a vague "We need to encourage women", because that really does nothing but push things in a "Well this would be nice but if things don't turn out that way then oh well" way. You can hire more women and then have programs that help them catch up as the societal issues are dealt with. If you go strictly on merit then the group with the advantage will just keep that advantage since they already have the tools.