Zacchaeus was hated by his community, because he was building a kingdom for himself at the expense of others. An encounter with the true King, Jesus, changed who he was completely.
Comparing ourselves with those around us, whether we see ourselves as better or not as good, is an inward self-focused perspective. When we look to the Creator of all things, we begin to see ourselves rightly. Only then can we humble ourselves before Him and find who we are truly meant to be.