I notice that GPT makes the distinction between the Mosaic law and the ten commandments.
The covenant with Israel was broken and God gave a better covenant.
Because the Ten commandments were part of the old, that does not automatically make them void in the new. We are told they will be written on our hearts..
Charles Spurgeon taught.....
From “God’s Law in Man’s Heart,” June 28th, 1885.
“It is a perfect law, in which the interests of God and man are both studied; it is not a partial law, but impartial, complete, and covering all the circumstances of life .“When the Lord thus writes his law upon our heart, he makes us to know the far-reaching power and scope of the commandment...
Charles Haddon Spurgeon May 21, 1882 Scripture: Matthew 5:18 From: Metropolitan Tabernacle Pulpit Volume 28
The Perpetuity of the Law of God
....
"I may also say that the man who knows the relative positions of the law and of the gospel has the keys of the situation in the matter of doctrine. The relationship of the law to myself, and how it condemns me: the relationship of the gospel to myself, and how if I be a believer it justifies me— these are two points which every Christian man should clearly understand. He should not “see men as trees walking” in this department, or else he may cause himself great sorrow, and fall into errors which will be grievous to his heart and injurious to his life. To form a mingle-mangle of law and gospel is to teach that which is neither law nor gospel, but the opposite of both. May the Spirit of God be our teacher, and the Word of God be our lesson-book, and then we shall not err.
Very great mistakes have been made about the law. Not long ago there were those about us who affirmed that the law is utterly abrogated and abolished, and they openly taught that believers were not bound to make the moral law the rule of their lives. What would have been sin in other men they counted to be no sin in themselves. From such Antinomianism as that may God deliver us. We are not under the law as the method of salvation, but we delight to see the law in the hand of Christ, and desire to obey the Lord in all things. Others have been met with who have taught that Jesus mitigated and softened down the law, and they have in effect said that the perfect law of God was too hard for imperfect beings, and therefore God has given us a milder and easier rule. These tread dangerously upon the verge of terrible error, although we believe that they are little aware of it. Alas, we have met with authors who have gone much farther than this, and have railed at the law. Oh, the hard words that I have sometimes read against the holy law of God! How very unlike to those which the apostle used when he said, “The law is holy, and the commandment holy, and just, and good.” How different from the reverent spirit which made him say,— “I delight in the law of God after the inward man.” You know how David loved the law of God, and sang its praises all through the longest of the Psalms. The heart of every real Christian is most reverent towards the law of the Lord. It is perfect, nay, it is perfection itself. We believe that we shall never have reached perfection till we are perfectly conformed to it. A sanctification which stops short of perfect conformity to the law cannot truthfully be Galled perfect sanctification, for every want of exact conformity to the perfect law is sin. May the Spirit of God help us while, in imitation of our Lord Jesus, we endeavour to magnify the law....
Charles Spurgeon was Baptist.