My wife had difficulties breastfeeding our daughter and ended up doing exclusive pumping for over a year. It was a huge strain on her, both mentally and physically. Then she still felt guilty for not being able to actually breast feed our daughter directly. Any woman that is able to provide any amount of breastmilk for any amount of time is an absolute saint. Women who can't or choose not to are also amazing and no one should be shaming or second guessing their choice on how to best take care of themselves and their child.
To add to that, while I agree that mother's milk is best, the difference is vanishingly small in most studies. We are talking about a few percentage points in aggregate, just enough to be statistically significant.
We had a good lactation consultant and I think she explained it well. All else being equal, breastfeeding is best. But if you have to choose between a mentally and physically well mother and breast feeding, I would choose a healthier mother, everytime.