Not taking kindly to self-righteousness does not erase the problem that there is a chasm between God and humans. The only way to bridge that gap is by faith that Jesus paid for our sins. The people who cling to their own self-righteousness are those who do not accept that they sinned and were separated from God.
As far as I know, the only belief system that preaches that you can NEVER be good enough to be God's friend and make it to heaven is Christianity - preached in its true form.
Self-righteous Christianity, Islam, Buddhism, Judaism, Hinduism, and many others all preach that you "earn" heaven. You have to be good enough or have the right karma or teach yourself to not want anything, etc. - all systems to merit heaven. Those systems are false. Jesus is the only Way - not self-righteousness.