I honestly find that this form of complementing to be toxic in general. I've heard too often "Other people are <insert negative trait>, but you are <insert positive trait>!" I generally appreciate the complement part when a comment like this is directed towards me, but the comparison to other people is not necessary. You don't need to put others down to build others up.