Based on what I’ve read in r/childfree, it’s far more common than not for doctors to prioritize the needs of a hypothetical husband or fetus over those of a real live woman. I’ve also known someone in real life who couldn’t get a painful medical condition fixed until her mid 30s because the treatment caused sterility. The problem goes way beyond religion; it’s more a matter of institutional sexism and the hubris of doctors thinking they know better than any woman who says she doesn’t want kids.