I guess where I struggle is that this attitude is kind of accepting the status quo and not exploring the aspects of a patriarchal society that have led us to this point and making a case for change.
Maybe you're right that a mere two years out of the job can put you behind (not the case in my industry). Why can't we live in a society that acknowledges this and invests in retraining/upskilling the women that have been competent (or better than) for all those years prior to daring to go on leave, rather than writing them off?
Why do we shrug our shoulders and say 'that's just the way it is. Those are the choices we make'?