Peter says we should have a tender heart and a humble mind (1 Peter 3:8). It is difficult to have either of those when we feel we are of more than others or less valuable than others. Thinking we are more righteous than another person by definition is a comparing ourselves with others, which scripture says is foolish (2 Corinthians 10:12). We will either feel defeated or proud depending on who we are examining at the time (Romans 14:4).
If we wish to compare ourselves with something or someone, let us compare ourselves with God’s word or God’a righteousness. That is comparison is much more likely to produce in his both humility and a ender heart. When we see our need for mercy, we are much more likely to give mercy.