Help!! Is it ok to pump and bottle feed baby instead of breastfeeding ???

Im a ftm and i feel pressured by everyone to breastfeed i have some

milk and i been trying to pump every 2 hrs or 3 and get 40 ml from each boob for 20 mins but my ped and other ppl keep saying its better to breastfeed idk why .. i cant breastfeed bcs im having trouble w baby latching and my nipples are not the best for breastfeeding and other complications that make it hard to breastfeed .. ... i just feel like im doing something wrong ???if anyone is doing the same can i get some tips like for how many mins u pumped ?? Or anything helpful??? And how much does bottled breast milk last refrigerated?