Op I’m sorry. This must’ve very difficult for you but I suspect pps are being blunt with you to help you emotionally step away and protect yourself from worse heartache.
It is very, very, very unlikely that your sperm fertilised that egg. It takes more than a fertile egg to create the right environment for fertilisation, including the right kind of cervical mucus, the kind that would have been present around the time of her one night stand.
During menstruation, when you had sex, the Vaginal/cervical/uterine environment is hostile to sperm.
Pulling out is also not reliable. For one, pre-cum contains thousands upon thousands of sperm, and for two she only has his word for it, and indeed you only have hers (sorry but she doesn’t seem that trustworthy) I would read “some might have gone in.” As “we got carried away but the intention was he was going to pull out.”
Takes deep breath and think about the kind of life you want to lead. You are still young. Lots of time to find the one, settle down and have your own children.
If you stay invested and the baby is not yours, come the birth you may find it harder to walk away, and feel judged by others for leaving a new mother. You will almost certainly be more emotionally attached to hoping the baby is yours.
You have said you do t want to raise another man’s child. Is it fair on the baby to stay if you are only going to leave?