The above is key to the gender pay gap. It annoys me a little when this stuff gets discussed in ways that ignore this obvious point, as it was over the pay of extremely rich television presenters recently. Women and men are paid roughly the same before they have children - in fact, in the UK women under 30 narrowly edge men now in pay, reflecting much higher educational achievement among girls. After that, a gap widens, and the higher up the pay scale you get the wider the gap tends to be. It's pretty obvious why this is, imo. (A separate concern, the underachievement of boys, is also worthy of discussion, but not really relevant to this, except to show how strong the effect of motherhood is in holding back careers contrasted with the much weaker effect of fatherhood.)
Best thing about this solution is that we all win - women, men, children.