There are bad cops, just like any other profession or job. Discrimination still occurs for a variety of reasons, most of which are listed in the 14th Amendment plus those added by the Supreme Court after that Amendment was passed. So, statistics need to be kept and an honest effort made to fire or prosecute the bad apples, we cannot leave these guys on the force to go out and do it again and again. Better training, better ideas for non-lethal means to stop somebody without shooting them, whatever. But all of that is still only part of the problem and not even the biggest part.
Which is, too many black people resist arrest and put the cops in a position to be fearful about their safety or that of other people. We can go into the various reasons why someone resists arrest, in many cases they're looking at jail time and don't want to go back in. We can look at the reasons why they got into trouble in the 1st place, but it's not realistic to think that resistance will disappear anytime soon. Defund the cops all you want, you're still going to have crime, probably more than you had before you defunded the PD. Maybe eventually you can get at the root cause for why criminals do what they do, but that ain't going to happen any time soon.
Even if we do better at eliminating the bad cops, other ones are going to make mistakes, and it is unreasonable to expect a cop to risk his life if and when he feels threatened. So, the biggest problem here is reducing or eliminating that threat to the cops. They don't go out the door thinking I think I'll shoot a black guy today. Black people, or anyone else really, has to realize that if you get arrested you've got to accept that even if you believe the arrest is wrong or unwarranted. If you go peacefully you won't get shot, it's as simple as that. Don't give them a reason to believe they are in any danger. And THAT is on you.