There are still some who have the false belief that the laws of the Old Testament were intended to make us righteous. But that was never the intention of those laws. They were there to make a primitive people civilized, as well as cause them to form a cohesive society. But they were never intended as a 'roadmap to heaven' or as a 'yardstick of righteousness'.
The most accurate comparison we have to the laws of Torah, including The Ten Commandments, is The Code of Hammurabi. It was already in existence at the time that the Torah was written, and, like the Torah, was intended as a means whereby a people could come together to form a cohesive society. Its laws were also societal in nature, and by keeping them a people could unify under a single set of laws that protected everybody.
But there it ended for both sets of laws. Their purpose was only to give the people who accepted them a foundation on which to build their societies. To think of them as being a way of achieving eternal life, or as a 'yardstick' which would measure a person's deserving eternal life, was totally beyond the parameters for which they were written.
As Christians we are under a new set of laws, brought into effect by the New Covenant (Hebrews 8:1 to 10:14). And instead of these laws setting us apart from others and identifying us as better than they are, these laws tell us that even as Christ, the Son of God, thought nothing of coming among us, where he showed us by both his words and his actions that he had genuine compassion towards us, we are also to show that same compassion to those whom we see around us.
You cannot share food with others through a locked door. You cannot clothe others if you've put yourself on a pedestal that is so far above them that you can't reach them. You cannot welcome the stranger and condemn him because he doesn't share every belief that you have. You cannot comfort the sick and imprisoned and judge their suffering as God's curse on them and so undeserving of any aid. But our direct orders (Matthew 25:31-46), given us by Jesus Christ himself in the firmest tones of any to be found in the entire Bible, say that we are to carry out these actions.
There are to be no excuses, no rationalizing away the purpose of the passage I'm referring to. We are set apart to serve others and alleviate suffering, even as Jesus Christ himself served others and alleviated suffering. So long as we accept this task we are forced to see others as just as important to God as we are. To the extent that we shirk our responsibilities in the performing of this task we are allowing our own arrogance to tell us that Christ was wrong and we are right. What will Christ say to that?