This sentiment seems a lot like the “you have it great, there are starving kids in X who have it much worse” meme I often heard growing up.
It encourages minimizing one’s problems, which can lead to all sorts of mental health issues. Thinking like this causes me to ignore real issues for too long, because someone else has it worse. It’s like gratitude’s evil twin of an emotion.
But we should respect ourselves and strive for better lives, even if they are already good compared to others.