Notice how I specifically said “and her doctor”? That wasn’t for funsies. At or near term, doctors will induce birth or perform a c-section, not an abortion.
It’s a medical procedure and as such hypotheticals WAY outside of standard practice to the point that the doctor would lose their licence in any modern country are as irrelevant as arguing about whether it should be allowed for doctors to remove a healthy spleen just because they’re bored.