That is a different thing. It was not that the doctor was reluctant to recommend weight loss due to their fear of being branded as body-shaming, it was that he denied the link outright, even though you were receptive to a weight-loss plan.
Wild story, either way. I expect professionals to be better.