This is much, much easier said than done, but try not to get yourself into too much of a tailspin.
Tokophobia is a real thing. You may find that being pregnant focuses your mind and that this is more of a theoretical worry, in a sense, and that the prospect of giving birth won't seem as terrifying or alien when it's actually real and imminent.
You may, of course, still be terrified at the prospect.
Everybody varies, and I'm a huge banger-onner, so will try (and fail) to keep this brief:
I had an elective c-section - technically for medical reasons but wasn't absolutely 100% necessary - more just advisable. I felt more comfortable with a c section on the basis that you basically get what it says on the tin, the number of things that can go awry is smaller and I - personally - would have felt more in control. And it was the right decision for me - it was magical, and as a rather major bonus it was easy and painless and I felt calm and lucid.
You have a legal right to a c-section if you don't wish to deliver vaginally when the time comes. Sometimes, depending on where you are and the antenatal staff you end up dealing with, you can end up having to battle a bit to persuade them. But it is still your right, and if they are convinced that you are cognisant of your rights and educated on the risks involved, they are less likely to put obstacles in your path.
Regarding vaginal delivery - it is a scary prospect, I agree. But it is worth remembering that, like c section delivery, it is safer now than at any other point in human history. Yes, sometimes things go wrong - again, as with c section delivery - but statistically things are very much on your side. IME obstetric staff now are much more amenable to things like hypnobirthing and the idea that a woman's environment as she labours has a significant effect on maternal and even neonatal outcome. Round here (South East) it's reasonably common now for maternity units to have things like iPod docks, soft lighting etc. Even things like aromatherapy are permitted in some places. Doulas are also an option if you're in a position to acquire one, and they are invaluable for a lot of women. Another thing worth bearing in mind is that if you feel that your anxiety would be alleviated by a less hospital-y environment and your pregnancy is deemed low risk, then (if there is one nearby) there's also the option of having your baby in a birth centre, where things are often much more "homely" and low key. (Again - people vary: some would feel calmer in a more medicalised environment).
Of course, if you and your doctor end up deducing that this really is a full blown phobia that might even impact on whether or not you feel able to get pregnant, there's also the option, AFAIK, of going down the route of therapy of some kind. I'm less au fait with what's offered on this score and what it involves, but definitely worth looking into.
FWIW, I'm a data junkie and relish the availability (courtesy of the internet) of every bit of info you could possibly dream of - but I do think the flip side is that it can be utterly paralysing to be armed with vast, vast amounts of info. And if you're reading up on a topic that for you has no solid "end point" (eg reading up on the minutiae of childbirth, study by study, when you're not yet pregnant) then it's possible to fall down an endless rabbit hole of data with no real-life frame of reference - which is, of course, very anxiety inducing.
Wishing you calm, and the very best of luck.