By the time of my last daughter being a bun in the oven, medicine to cover this had advanced a lot compared to my first daughter who is 20 years the senior over her younger sister who now is 37. Both of my daughters have children. The senior daughter has 2 sons. The younger daughter has a son and daughter. Both girls never will have more children.
My last wife, the youngests mom, had those tests. She never said to me if our daughter is defective, I shall kill her. Bear in mind a female granting permission is also guilty as is the doctor of taking human life.
Sure if the infant definitely will die prior to birth, a case can be made that there is no difference in ending the humans life much sooner and is the same as the life ending naturally with no effort by doctors or the woman.
What makes the convicts death a reasonable effort to end the killers life and the baby in the mom is the baby is innocent. Trying to excuse it by changing terms such as baby vs Fetus is not a valid argument. They both are humans.