General rules that you use for strangers don't really apply to anyone you have a personal relationship with. And sexism is usually a problem of power mismatch between the two people, which doesn't really apply here either.
Thanks for your reply. I don't know these people and don't know their history. My opinion is that their comment should be clearly non-sexist or clearly relevant.
Captions are often descriptive of what is actually in the picture, not merely the most relevant thing in the picture but also incidental details.