Have you contacted your local family centres to see if they're running breastfeeding support in the community?
I volunteer at one as a breastfeeding peer supporter and although the service is being cut in some places it's thriving in others.
Many babies also don't latch immediately, mine included. We breastfed for 3 years! It just took help.
Other posters are right that really breastfeeding is a game of statistics. Statistically it is better, but that's on a population level. Individually, breastfeeding and formula feeding probably make little difference but if you're pumping baby is still getting most of the benefits of breast milk.
You can also call the national breastfeeding helpline and la leche league for support.
Please do not feel guilty about this. It's new to you and to your baby, I've worked with mums where it's taken weeks and in some cases months to go from pumping to breast, but we've made it work.
I won't say fed is best because personally I just don't believe it's helpful. It doesn't quell any. Guilt you feel and it doesn't aid any grief if it does not work out, but you need to know if it doesn't, it's because of a huge gap in community support, and not because you gave up.
The most important thing for your baby is to have healthy, happy parents, who are capable of giving him/her the love and attention she needs.
Reach out if you need to.