One thing that would help is if TV and other mass media stopped enforcing this stereotype so much - they always have the high-powered woman married to the high-powered man, and the high-powered man may be married to either a career woman or non-career woman, but you don't see the reverse. A few shows (Parenthood comes to mind) have gone against this trend.
A man in his 30s, dating women in their 20s will find more of them amenable to reproducing right away, and it's not much of a big deal to the man, if a prospective partner wants to delay that another 5-10 years.
A woman in her 30s, dating men in their 20s will find fewer of them amenable to reproducing right away, and there are significant, potentially deal-breaking costs to the woman associated with delaying another 5-10 years.
There are alternatives (adoption, surrogates, etc) and perhaps through some social normalization they'll further close the gap. But the social/financial/identity[1] costs of such arrangements are going to remain substantial for some time.
[1] that is, a person's (potentially strong) preference for traditional, biological children, due only their own pre-conceived notions of how they'd start their family. Women have definitely been known to 'settle' for a lesser mate to avoid challenging that preconception. And that willingness to settle is a profound disadvantage.
Should it be the role of software engineers to fix social injustice as well? Perhaps our designs should be subject to review by some committee to ensure they meet certain criteria, as would likely be the case with The television industry if you wanted to ensure compliance.
Which is the crux of it. Though I wouldn't say it's fair to consider it self-inflicted.
Even if a woman decided she was comfortable with the idea of dating a less-successful/educated man quite a few years younger than herself, few social circles would accept it without friction (far fewer than see any problem with the arrangement were genders reversed) and fewer (desirable) men are themselves comfortable with it.
So, sure, every 20-year-old woman is fairly well aware of these factors and ought to plan accordingly. But even if they shake the mentality at 30, while they can improve their pool, erasing the disadvantage entirely is simply not something that's under their control.