>>216691548 (OP)
90%+ of the murders are criminals killing each other, 80%+ of the victims are black/brown (it's actually more, but many browns identify as white), they're nearly all very young etc.
Your chances of getting murdered as a middle-class white man who's not involved with drugs are objectively lower than your chances of getting killed in a car crash.
Not saying Brazil isn't dangerous. There's a lot of mugging here and sometimes they may lead to death, specially if you try to react in some way. Just do what the criminal is telling you. Give them your cellphone, your password, anything they ask of you.