I don't know about that as the fix. There are plenty of things that need to be fixed in the law. In my opinion most come from laziness, win-at-all costs mindset, and ignoring rule of law from the people who run the system.

Reigning in LEO/DA/judge discretion would make the system more fair and potentially prompt the public to demand we fix the broken laws since they would be more likely to be subjected to them rather than let off the hook. I've seen people admit to crimes and be let off the hook based on discretion when others have not. I've seen DAs violate their office policy to ignore misconduct allegations against LEOs - not just performing a shotty investigation, but deciding not to investigate at all even though it's part of a case they are prosecuting. I've also seen a judge give contradictory reasoning in the same case to the detriment of the defense (said lack of a record means they are denying the motion from the defense, when the defense later said they had a record he then said no prior records were allowed to be used).

Changing the mindset of the public from "those criminals deserve it" and truly believing in innocent until proven guilty would also help with the bias defendants face in the system. The first person to call the police is labeled as the victim and that carries a huge bias that affects police and DAs to the point that they don't perform though investigations. In science and other logic based fields you at least think about the devils advocate perspective to verify you are right. This doesn't happen in law. As soon as they get the evidence to "prove" you are guilty, they stop looking. You could have a valid defense or have information that one of their facts is wrong if they investigate a little deeper, but they won't. This puts the defense at a disadvantage since the police and DA have much greater power to investigate than a defendant does. This victim/complainant positive bias will only get worse with things like ex-parte red flag laws and Marcy's law. These are popular with the public, yet in many cases undermine constitutional protections. We even see that things like PFAs are being sought without basis with the intent of weaponizing them in divorces. And this is done with the knowledge of and even pressure from the lawyers, who are supposed to be held to the ethical standards of the bar.

We also need better oversight and higher standards for those who run the system. I've seen a trooper contradict himself multiple times in official reports and in court, one of which I believe was an outright lie to the judge. The investigator said it was just a misunderstanding and they did not care about the contradictions. Any other witness would have been discredited. I doubt they logged these contradictions as Giglio information for future cases. Magistrates in my states aren't required to be lawyers or even pass the bar in my state. I've had magistrates believe that they were being called prejudiced when being asked to dismiss a case with prejudice. Unreal.

Cost of prosecution is covered by the government and virtually unlimited. Cost of defense, other than the indignant, is not covered and can outweigh the cost of pleading guilty and paying a fine. You aren't reimbursed after being found not guilty. This means you can be punished (pay more) more as an innocent person than if you were guilty. How is this justice?

Most cases are settled in plea deals. Many people settle because they could be held in jail while waiting. In many states, if you're not in custody, they consider a speedy trial as anything that starts withing 4 or 5 years. So much for that constitutional protection.