I’ve read a number of court decisions. Makes me a geek, and I’m not a lawyer. But I’ve read a LOT of excellent, carefully thought out and clear court decisions. Many judges are excellent.
Some decide what they want the outcome to be, and vote accordingly. 5 members of the US Supreme Court are like that.
There used to be a guy on the Arizona Supreme Court. He would make (with help) a decision based on what he wanted. The next year, the AZ Legislature would pass a law specifically overturning his decision. It went on for years. The court would say, “X means Y”. The Legislature would pass a law the next year, defining X as X in extreme detail. In many cases, they would outlaw what the court had just ruled legal.
But there are many good judges, and I’ve met a number of good lawyers.