Much rhetoric on morals viewed so-called “sin” as something God condemns. Sure, as Judge over the living and the dead, God will need to condemn certain souls, but that’s where we think our own opinions are the same as an opinion of the Court. They’re not.
When Jesus stood before the Sanhedrin, Jesus was not on trial; humanity was. Jesus had already decided that our so-called “sins” needed to be forgiven, and his death was the only verdict he could pass. Jesus doesn’t see our actions as commendable or condemnable. His worldview asks whether a thing is commendable or forgivable.