Earlier quoted context omitted.
This is confusing the practical realities of today with ideal law. The burden of carrying or terminating a pregnancy, bodily and fiscally rests solely on the woman in any scenario. The law can't meaningfully distinguish, or even collect solid evidence, of "consent for reproduction" nor can it handle third party equipment failure (or reasonably prove it was not due to misuse either way). If a man has sex with a woman…
Are we pretending things like vasectomies aren’t a thing? The success rate is generally in the upper-90% so sure it could fail but for the vast majority of people, that is equivalent to “disabling sperm production entirely” The laws also, as have been mentioned already elsewhere in this post, do include such a consent clause. So it’s not really theory either.
And also being just downright stupid about what a vasectomy is and it's reversibility (hint: no medical professional will perform a vasectomy if you are getting one under the impression that it is reliably reversible, particularly after decades).