Unless the court is rigged and the judge is corrupt.
That's why you never agree to a trial by Judge over a trial by Jury. Judge can override and rule against current laws in some states. Jury can't bend laws around and rule whatever.
Only people who want to subvert current laws try to get Judge to rule against own laws. Like if they are libtard radical protesters who want less jail time ect.