I think it's wrong to dismiss other people's problems just because other people have bigger problems. We all live different lives, in different circumstances, and care about different things.
So you've got the flu and can't get out of bed? Stop complaining, some people have cancer!
You can't afford to buy a car? Well, some people can't afford to buy shoes!
You got fired? Some people never had a job to begin with!
You can't buy your child the toy they want for Christmas? Some people can't even buy food for their children!
Yes, some of those problems are bigger than others, but it doesn't make the others any less legitimate. This "You're better off than me, so you have nothing to complain about" attitude is harmful and ultimately completely devoid of empathy. Just because something doesn't seem like a problem to you doesn't mean it's not causing emotional distress to the other person.