While pointing out hypocrisy and imperfection among some of those who considered themselves “righteous”, Jesus did not ask us “not to judge each other”.
Jesus was not the liberal dream of some “get along, go along, not my business what you do” kind of guy.
What He told us was that HE was not here to judge us but to prepare us for the time when God would surely do so.
Big difference.
Yes, that's Jesus, and not one of us, or even someone for us, to emulate exactly. That's why the people were commanded to 'judge not, lest ye be judged'.