Jesus did not come to give law . He came to give grace. That is why He set us free from law (Romans 7:4, 6; Ephesians 2:15).
Psalms 119:29 Put false ways far from me and graciously teach me your law!
Do you believe that this verse is true in that the way God showed his grace to David was by teaching him to obey His Law and that David had a correct understanding of God's grace? In Titus 2:11-14, it says that our salvation involves being trained by grace to do what is godly, righteous, and good, and to renounce doing what is ungodly and sinful, which is precisely what God's Law was given to instruct how to do. Furthermore, it does not say that Jesus gave himself to set us free from the Law, but to set us free from all Lawlessness and to purify for himself a people of his own possession who are zealous for doing good works, and God's Law is again His instructions for how to equip us to do every good work (2 Timothy 3:16-17, Acts 21:20)
In Romans 7:21-25, Paul said that he delighted in obeying God's Law and that he served it with his mind, but contrasted that with the law of sin that held him captive and that he served with his flesh, which is a summary statement of what he had said previously, so we need to be careful to correctly identify which law he is talking about. In Roman 7:6, Paul specifies that the law that we are free from is the law that held up captive, and it is the law of sin that Paul described as holding him captive, while God's Law is a law of liberty (Psalms 119:45, James 1:25).
In Deuteronomy 24:1-4, it prohibits a woman from returning to her first husband after she had been with another man, and this is the law of her husband that Romans 7:4 is referring to. The Mosaic Covenant was a marriage covenant between God and Israel, and in Jeremiah 3:1-14, God actually gave Israel a certificate of divorce because of her adultery, yet God continued to call for her to return to Him, and it was a mystery how God would accomplish this because the only way for Israel to return to God and be released from her adultery would be for her first husband to die, which means that God would have to die. So in Romans 7:4, Israel died to the law of her husband through the death of Jesus, so that Israel might be free to become remarried to him who has been raised from the dead that we might bear fruit for God. This has absolutely nothing with Jesus doing away with his instructions for how to bear fruit for him.
In Ephesians 2:10, it says that we are new creations in Christ for the purpose of doing good works, so it again would not make any sense to say just a few verses later that Christ did away with his instructions for how to do good works. Rather, Ephesians 2:15 is referring to man-made laws, such as mentioned in Acts 10:28, that prohibited Jews from visiting or associating with Gentiles