This is a classic "Appeal to worse problems" logical fallacy.
Because other situations could be worse then your problem is irrelevant.
It goes all the way back to your parents telling you that your problems are irrelevant because there are starving children in Africa.
Here's a wiki on it. https://rationalwiki.org/wiki/Not_as_bad_as
It's one of the purest most common logical fallacies used.