When making a comparison, it only makes sense to compare ourselves to perfection. In that comparison, we see our need for a Savior. With Christ as the plumbline, righteousness is the goal and nothing less.
But there's more... Do you know that "in Christ" you are already righteous?
"And because of him you are in Christ Jesus, who became to us wisdom from God, righteousness and sanctification and redemption."
(1 Corinthians 1:30)He has declared us righteous, is perfecting His righteousness in us and will complete His work at His return. We need not compare ourselves to others.
The next time you're tempted to compare yourself to someone in regards to looks, material possessions, talent, marital bliss/lack thereof, perception of spiritual maturity/lack thereof, or anything else, remember your reality and righteousness are found in Christ. He is the standard by which we measure.