my bestfriend is also pregnant

And I'm not for one second trying to sound rude, stuck up, bitchy or anything. I'm truly happy for her.. but at the same time... she was always telling me she wasn't ready for a kid. She lives in her fathers basement with her bf and her brother in a studio like area & doesn't have a car and just stopped working. It just makes me wonder why all of a sudden she wanted to get pregnant.. did she do it on purpose? I swear I got pregnant, she took out her iud and then months later tells me she's pregnant.... I'm SO HAPPY for her because she's gonna make a great mom but she's also one to brag and I just feel it's gonna ruin our friendship. any time she gets something new, she brags. So say she gets something for her baby that I don't have and she brags, just annoying. I don't want it to be a competition between us and I can see that happening. I haven't even spoke to her for weeks just because I'm trying to understand what's going on. We never see each other no more and she never makes an effort to drive out to my house but she always expects me to come to hers. I'm just annoyed and debating if I even wanna save this friendship.
What do you guys think?