This is, to a large extent, a US problem, because of the qualified immunity. Yet another cultural abomination that nearly doesn't exist anywhere else in the "developed" world.
The impact of qualified immunity is greatly exaggerated. All it means is that an officer can't be sued for performing their duties. They can still be sued for acts outside their authority. And more importantly, qualified immunity has nothing to say about criminal prosecution.
The real problem isn't the legal doctrine of qualified immunity, but the informal doctrine of "police don't get prosecuted for crimes, and if they are, they don't get convicted."
The impact of qualified immunity is greatly exaggerated. All it means is that an officer can't be sued for performing their duties. They can still be sued for acts outside their authority. And more importantly, qualified immunity has nothing to say about criminal prosecution.
The real problem isn't the legal doctrine of qualified immunity, but the informal doctrine of "police don't get prosecuted for crimes, and if they are, they don't get convicted."