Then he who is physically uncircumcised but keeps the law will condemn you who have the written code and circumcision but break the law.
Romans 2:27 ESV

A gentile who keeps the Law in his heart is better than a Jew who is properly circumcised but doesn't follow the rest of the Law. Imperfect obedience in faith is better than obedience to the letter of the law without real faith.