The world does not have a finite supply of “deserves sympathy” juice which must be carefully metered. One can reasonably feel sympathy for people (and animals too!) who are experiencing different forms of suffering, even if some are much more severe than others.
If you’re trying to distribute aid resources or something, it would be worthwhile to get an understanding of who is suffering the most. But if someone is just having the normal human experience of feeling sorry when they hear another person is hurt, there is no benefit to intentionally cultivating schadenfreude to shut that down. That’s not an instinct we should encourage in each other.