Venting just need some advice

So I’m currently 38 weeks pregnant. The relationship I have with my babies father is bad we are always fighting no matter what. We broke up like 3 months into the pregnancy he became really bad with me and I just didn’t wanna deal with it but now since I’m having his kid he doesn’t leave me alone. We’ll fight ignore each other for days or weeks then again try getting on good terms and once we are things go left alllllll over again. I’ve never wanted to keep his kid from him but I think about the fact that I’m having a daughter and then I think about how he has treated me and how bad he’s been and I question if I want him to be there, he doesn’t deserve it at all but again I know that’s her father. I just think about how almost all little girls look at there father like the greatest guy in the world the best man to them and it’s like me knowing how he is I just think how can he ever be that to her. Just feelings really emotional and don’t know what else to do ☹️