It isn’t as dangerous, but also the number of police shootings is lower than some people expect, if I recall correctly.
But then, I’ve generally lived in areas where the police would actually come and intervene if there were a problem. That varies a lot in my country though, by area.
Lately, in developing a hypothetical/fictional country, I’ve been pondering foot patrol officers assigned to specific neighborhoods (rotated on a five year basis), trained in EMT stuff as well, with the different role of “Community Support Officer”. Separate out the heavy guys for use solely on bank robbers.
Edit: The idea being that you want someone who can use discretion, who lives nearby and is more of a part of the community than an occupying force within the community. All sorts of contextual information. But you don’t want them to stay so long that they set up a bribery network or something. You’d have to combine this with a whole bunch of other stuff to make it work, though. It isn’t so helpful if your CSO arrests some kid for vandalism after several warnings and the prosecutor sends him to prison in order to max his “woo, tough on crime!” ratings. (Instead of, you know, making the kid clean up the spray paint.)