Logical fallacy

Fallacy of relative privation

The argument dismisses a problem or complaint solely because a worse problem exists. The relative severity of the other concern does not show that the original concern is insignificant or unworthy of action.

A little leak overlooked while a gaping hole in a second roof gets attention

Examples

There is no reason to fix the leaking school roof because some schools have no roof at all.
Schools with no roof may have greater needs. That comparison alone does not settle whether fixing a leak is worthwhile.
No one should care about a broken crossing because other countries have worse traffic problems.