I feel like if you're a good enough parent you don't make your kid feel unwanted even if you feel it. Or you get therapy to be able to feel happiness in your current life with your current kids, so that you aren't constantly dwelling on "what could have been " if you hadn't had them.
It's a parent's responsibility to not make their child feel like they're a burden simply for existing. If they fail at that, that's on them.