Outside perspective welcome. Would you find these sort of comments from your spouse/best friend/parent/ someone else you’re close with supportive?
Person A needs to lose weight. They are very aware of this, have a lot to lose but have a lot of issues with food and weight for many years.
Person A bought some chocolate today and person B has expressed their disappointment and wanted to know why person A had messed up their diet today.
This is their way of helping and supporting but Person A does not find this helpful. Person B knows this but continues to make comments like this frequently.