To expand on your analysis, one might wonder what kind of person makes a comment like that? In my view, a pathologically inadequate narcissist (almost certainly male). Deep down, he is aware of his shortcoming. His insecurity makes him feel the need try to diminish the threat to his ego that others represent. You can't change someone like this. He would have to admit he has a problem, and seek help. But recognizing his inadequacies would be too painful and hard on his ego, so he won't. Fortunately, we don’t have to “deal” with someone like this. We can easily cut him out of our lives like a malignant tumor and move on. Life is too short to “deal” with soul-sucking trash.