Situation of accidental pregnant?

I just broke up with my ex boyfriend. We were dating for 9 months. Let me know what do you think about the reason why we broke up. So I asked him "what would you do if I get pregnant accidentally?" It was random question from some conversation. Then he said "I'm not ready and we are not living together also not married. I wanna have child with the person who I decide to be together forever but you are not the one yet. So I would say I want you to get surgery and kill the baby" I really shocked that answer. But he got angry when I say "If you want me to kill the baby, I'll give birth them by myself and take care of them by myself" and he said "That is selfish. You just give birth the baby because you want to. You don't care about the child because they can't see them father". I just told him that how I take responsibility but he blamed me.

He didn't even say he would be happy because it's our child also he even can't decide to get marry to me if I get pregnant. I thought we were serious relationsip but that made me confused and hurt and sad.

In my opinion I actually not ready to have baby and get marry to him rn either but if I get pregnant I'll be ready and get marry to him to take responsibility for our child. Because I loved him there is no problem and hesitation in that choice.

It's just forexample, none. But needed to know about it.

What do you think?
Situation of accidental pregnant?
Post Opinion