As someone how has lived in both cities, I can say I felt unsafe way more often in SF than Chicago. Chicago's crime is gang related and isolated to a part of the city kind of disconnected from the main hub. But in SF the craziness is in the nice areas, I have had to deal with way too many violent mentally unstable people there, in fact I remember one of the two years I lived there a British woman randomly got a kitchen knife jabbed through her skull. In SF you're dealing with a large number of seriously mentally ill going to and from work.
As someone who has lived in several of the places topping the crime charts in the US, I want to tell you that this comment stinks of privilege.
In Chicago you were able to afford to live somewhere isolated from the reality of most Chicagoans.
In San Francisco you have so thoroughly priced everyone out that there isn't anywhere for the lower classes to go and so the bullshit is everywhere for everyone to deal with. Boo hoo.