The wage gap is mostly a motherhood gap. For those women who choose to become mothers, suddenly there are more important things in life than the company's priorities. They start falling behind women who didn't have children, and men who carry less of the work of the household. This is surprisingly not common knowledge by now even though it's well supported by data and well discussed by feminists, including Hillary Clinton. Speaking about populations in general and not individuals - women with children on average earn less because work isn't the highest priority in their lives. I think they're the smart ones.
The other major component of the wage gap is that women on average aren't as well represented in higher paying fields like STEM fields, or work that's physically dangerous and undesirable - but pays well. With that latter segment of jobs, again one could argue women are being smarter about it. This is true even in the most enlightened countries like the Scandinavian countries - in fact it's more true there. I think the only way to address that is to get it into the heads of young girls who're still in school that those STEM jobs can be women's jobs. How to accomplish that is still a mystery.
You say the remaining gap is a 'motherhood' gap. Someone else thinks its chauvinism. And someone else thinks it's feminist propaganda. And another thinks it's a Masonic scheme. It doesn't matter! The market will correct for whatever injustice might actually exist. But only if the law permits the market to enact a price for bigotry.
Other times, no, because it would mean that group is just as good as me, and I can’t have that.
As Friedman points out, the market punishes the bigot when the market is permitted to do so. Only the government can prevent the bigoted businessman from paying the price for his bigotry.
The underlying problem with letting the market handle things, as far as I can tell, is that the activists can't claim credit for punishment administered by the market.
But as others became aware of the advantage, the overlooked group of people would find themselves more sought after. And that would drive up their wages and increase their opportunities.
https://www.youtube.com/watch?v=hsIpQ7YguGE