Comparing yourself favorably to others doesn't justify you before God, only sincere humility and repentance will.
If you think you are keeping the law perfectly, you will need to sacrifice all you've got. literally give it away, to justify yourself. It's especially hard for the rich to let go of their stuff for the kingdom. But we can enter the kingdom and receive reward without trying to justify ourselves.
Jesus predicts His rejection, death and resurrection in Jerusalem, where he is now heading. He heals a blind man near Jericho.