Sounds like a derogatory remark no matter how it is said. Unacceptable, regardless of who it’s about. Line it up with all of the other words that cause harm to one’s self esteem. I could name off a few, but it may offend some people.