People need t under the criminal "justice" system a little better. When you are charged with a crime, you generally start off with the government offering a plea deal which means that they do not have to prove anything or have a court case.
Next, you will likely get a bench trial ( the governments equivalent to the star chamber trials in the past), the people charging you act as both the judge and jury, and thus almost no one ever gets their charges dropped regardless of how god their defense is. Many prosecutors looking to pad their portfolio will not admit to being wrong which is why you can see some recorded bench trials where the defendant pleas not guilty, and shows video of the actual crime being committed by someone else, and still not get the charges dropped ( look up the free state project is you want a bunch of examples)
After that, you will often get the chance to appeal the guilty charge with a jury trial, but many states will charge hundreds or thousands of dollars to appeal, and after that, you will still not get a fair trial as the state will make sure your jury is of people who will vote guilty so they can go home quickly ( the jury selection process for cases where the government is against what the person is believed to have done, specifically selects against anyone who shows any understanding of the law and the burden of proof, in cases where liberty minded people have tried to get on a jury, when they pretended to dumb and preoccupied, they got on the jury ( by showing that they wanted to be there the least), when they gave no excuses random made up excuse and showed understanding of the legal process, they were never picked.
If the government does not like you then you will not get a fair trial as there is too much of a conflict f interest since except you and a private lawyer, everyone else is on the side of the state. And to sidestep the constitution, they make getting a jury trial as expensive as possible so that you will take a plea deal.