Per capita tells the real story. I'd take Chicago or New York over any small town in, say, rural Mississippi or Alabama[1]. Yet [certain] media's "big liberal cities = bad" narrative continues...
There's a long-running genre of clickbaity story (that's been around since before "clickbait") that runs something like "America's five most dangerous cities!" and reads like the list of places many people believe are exceptionally-dangerous in the US (because of these stories...) but people consistently read them poorly (and media know this, so are basically lying on purpose, but big city names being on the list gets more attention, for multiple reasons, than if the list were mostly small cities).
The rhetorical trick here is the cut-off point. For one thing, you're limiting it to cities in the first place. For another, take a look to see where their cut-off for size of city under consideration is—the higher it is, the more it'll skew toward big names (duh) so they almost always set it pretty high, and the lower you make the cut-off, the farther (most) of those plummet down and off the list as small and mid-sized cities take over.
It's wild the tales [certain] media outlets tell. When I moved to Chicago, I got no end of suggestions to buy a gun, get bulletproof glass for my car, increase my life insurance policy...
Sure, the deep south and west sides might be not be too nice (particularly at night), but that's mostly gangs shooting at each other. My neighborhood is actually quite nice, but even if you take the city as a whole, the violent crime rate is 639.7 per 100,000 people [0] or 5.38 per 1,000 [1], depending on what source you go by (but I'll just use the 639.7 figure since that actually makes the city look worse). Compare this to Houston, TX: 11.35 per 1,000 people [2], Dallas, TX: 7.71 per 1,000 [3], or Nashville, TN: 10.95 per 1,000 [4].
So, 0.006397 (Chicago) vs 0.01135 (Houston) vs 0.00771 (Dallas) vs 0.01095 (Nashville). Hmmm...seems like Chicago is slightly more peaceful than Dallas, I'm 1.77x more likely to be the victim of a violent crime in Houston, and 1.71x more likely in Nashville. One has to wonder, if Chicago is apparently a warzone, why [certain] media outlets aren't equating Houston and Nashville to Fallujah.
1: https://www.police1.com/ambush/articles/10-us-counties-with-...