IMO, the rights of the child only exist after it is not wholly dependent on the mother's life to exist (ie. an actual child, not a fetus.) Which means that a dead fetus has no rights, and a fetus that would kill the mother isn't even a person, much less a person with the right to kill the pregnant person.