If religious laws and piety produce nothing more than judgement and elitism, then they are not from the spirit but rather the ego. They are societal parameters to regulate appropriate decorum determined by individuals crudely attempting to construct their ideal reality.
Aspects of the true spirit will produce fruit that manifests in forms of love, freedom and peace, not judgement, rigidity and angst. No man made laws, institutions or religious righteousness will bring you to God, but they certainly can distance you.
When you find your religious perspective is one from a high vantage, you should reevaluate what it is that you believe and what it is that you want from others. We are all equal in the eyes of God. We are all imperfect in our own ways, and to judge others for their specific imperfections, only deepens our own. And, deepening our own imperfections, deepens the chasm that divides us from God’s absolute perfection.
We should shift our eyes from societal things and the eqoic mind which feeds off of comparison and judgement, and instead turn inwards to gaze upon ourselves. Not from the point of view of judgement, but simply from the perspective of an impassive observer.
We should focus more on who we are and what we are becoming in relation to the absolute source that is God, and less about the faults of others in an attempt to falsely build ourselves up.