This is why intent matters.
If the intent is to kill the baby, then yes, it is murder.
But if the goal is to save mom and the baby if possible, then it's not murder.
Again, letting a dying person die is NOT murder. Intentionally killing a dying person is murder.
If a doctor can only save...