Being compared negatively to anyone stings.
Additionally, these statements are usually said when the listener doesn’t quite stack up to what the other is hoping. That stings too. Double sting.
Don’t say “You so emotional, just like your mom.” “You remind me of X, he’s also so clueless about these things.” “Why can’t you be more like Y, she’s so much more fun than you.”
Find another way to say what is on your mind.