Earlier quoted context omitted.
I see what you are saying but I simply disagree. Depending on the age, specific region, and various other social contexts of the participants, not to mention the context of their existing relationship, that joke can be just fine and the story implied it was, in that case. I don't agree that the comment underscored the power differential, rather than wryly acknowledging the reality that the expression didn't work well…
I think the argument is that there are many ways to compliment someone that aren't sexual, and that sexual statements (whether compliments or otherwise) should not be used in work situations: that even in a situation where a sexual statement is taken as a compliment rather than an offense, it is still inappropriate for work.
a) unrealistic
and
b) especially true for a certain time and place
and
c) a standard for behavior which may have unintended consequences. If you want to regulate a behavior, you should be able to demonstrate that the harm imposed by the regulation is less than harm prevented by the regulation. In my opinion a blanket ban on sexual comments in the workplace probably does more harm than good.