As others pointed out, the obvious only answer to desire is: “both”.
Of course we should help people develop the good character to not choose murder, but in the meantime, murder should never be codified as legal (to use your phrase).
Laws can either be complicit in individual evil, or not complicit in individual evil.
We can’t control whether individuals choose murder. We can choose whether we socially codify murder as permissible.
The society that has a law against abortion, thereby codifying into law your beliefs, but where there are folks who would want an abortion if it was legal but are unable to get one. Or, a society that believes in the legal right to abortion, but there are very few women who seek one?
The bolded bit makes a huge difference to the baby, friend.
Think Gianna Jessen. She was literally born after her mother’s attempt at abortion failed.
Seems glad to be alive and not to think it’d be all the same if she’d died that day as scheduled. Babies born to begrudging parents (like those in your hypothetical who want to kill their children but are unable to) still get to
live. Key point.
Sure, the moral character of murderous parents is bad, and that’s bad.
But their children get a chance to grow up and develop moral character of their own. And that’s good.