Judges are usually well educated, and a few are relatively honest. Especially appointed ones. Electing judges is for red state idiots.
Prosecution teams are generally assholes, but they're pretty smart too. [Just not smart enough to make money in private practice.]
Having served on juries, I can comfortably say that jurors are among the dumbest fucks that I've ever met in my life.
The Minnesota folks actually got one right. It's a fucking miracle.
Juries usually get it right as do Judges. Not everyone agrees but then not everyone agrees with the basis of our legal system: Blackstone's Ratio.