Opinions on abortion can be moral judgements, but allowing abortion is objectively the better option, since it's going to happen regardless. Not to mention separation of church and state being a thing.
Not to mention the medical issues that pop up where it should be explicitly legal, like with young teenage girls or rape victims.
Illegality never stops everything, it’s just some subset of embodied ideals.
For drugs there actually is a strong argument for applying the same logic to legalise and regulate them, as it may well reduce harm.