Developers are not paramedics, our jobs should not require instant availability and the systems should be stable. There is a difference between being productive and being available for random unplanned bullshit.
Even though CVs don't (at least in my country) have DoB you can infer it from years in education. You might not even get a chance for an interview to say "I never want kids, I just want to work hard".
Let's pretend all jobs are like this, where flexibility pays more, if you do ever plan on having kids, could you afford and would you be willing to take a big pay cut so you can spend time with them?
In any case, we can’t function as a society by limiting everyone’s opportunities because someone might be discriminatory. We need to address the discrimination, and we’ve made great strides as a society.
I know a number of people who have done just that - taken a big pay cut - to spend more time with kids. And why shouldn't that be the case? Less work => less pay.