I don't see the state's interest in controlling this issue beyond the safety of the patient. It look an awful lot like appeasing "religion A" in their efforts to control everyone in their society. Like some weird version of Christian Sharia Law.
Also, if a fetus is a human being, then a pregnant women cannot be jailed, because that would result in the incarceration of an innocent human without due process. In other words, if mom robs a bank, while pregnant, you can't incarcerate the "baby" because the "baby" didn't rob the bank.