So then is God prideful? No, but He is perfect and we aren't. So righteous judgment is good and we aren't always right. So we need tp be certain. The Word is used to correct and rebuke others. We can be certain about the Word but not so much with everyday common decisions. And we should not judge UNLESS we are willing to be judged in the same way, otherwise we are hypocrites.
Apart from the scriptures, in life, we choose good from evil. We judge which path is right and then go with it. Each choice is a judgment, we weigh the pro and cons and make a judgment call. People that come into our lives overall are judged worthy or not. We don't like them, don't get along with them, have little in common, so we make a judgment to accept or reject them. We make many choices that have consequences, good and bad.
Judgment sounds strict though, maybe concerning people the word "conviction" sounds less condemning. God judges and it is final. In courtroom, a judgment includes a penalty and that is final. Is the judge prideful? No. If the truth is on your side, judgment is righteous.
I used to look at my judgments about people (not life decisions in general) as not being so final because the person on the other end did not receive a penalty. I looked at them as convictions. Convictions are uncertain and therefore less condemning. We can be wrongly convicted, and still hold unto our innocence.
So how does iron sharpen iron? By the truth. And the truth is sometimes ends with a judgment. When truth convicts someone, then the judgment is righteous. When a falsehood convicts someone, it is unrighteous. So as long we know the truth, judgment is necessary. We learn from our mistakes. Our parents judge us usually with the truth and so it's righteous and we learn from it.