You are both badly mistaken. Catholic Apologist, Dave Armstrong, has done an extensive analysis of Luther’s commentaries and writings, including his comments about the biblical canon.
In Luther’s Preface to James and Jude:
"Though this epistle of St. James was rejected by the ancients, I praise it and consider it a good book, because it sets up no doctrines of men but vigorously promulgates the law of God. However, to state my own opinion about it, though without prejudice to anyone, I do not regard it as the writing of an apostle, and my reasons follow.
In the first place it is flatly against St. Paul and all the rest of Scripture in ascribing justification to works (2:24). It says that Abraham was justified by his works when he offered his son Isaac (2:20); Though in Romans 4:22-22 St. Paul teaches to the contrary that Abraham was justified apart from works, by his faith alone, before he had offered his son, and proves it by Moses in Genesis 15:6. Although it would be possible to “save” the epistle by a gloss giving a correct explanation of justification here ascribed to works, it is impossible to deny that it does refer to Moses’ words in Genesis 15 (which speaks not of Abraham’s works but of his faith, just as Paul makes plain in Romans 4) to Abraham’s works. This fault proves that this epistle is not the work of any apostle.
. . .
1522 version: In a word, he wanted to guard against those who relied on faith without works, but was unequal to the task in spirit, thought, and words. He mangles the Scriptures and thereby opposes Paul and all Scripture. [PE version: "rends the Scriptures and thereby resists Paul and all Scripture] He tries to accomplish by harping on the law what the apostles accomplish by stimulating people to love. Therefore I will not have him in my Bible to be numbered among the true chief books, though I would not thereby prevent anyone from including or extolling him as he pleases, for there are otherwise many good sayings in him. One man is no man in worldly things; how then, should this single man alone avail against Paul and all Scripture.
. . .
(LW, 35:395-398; cf. PE, 6:477-479)"
"Only the papists accept James on account of the righteousness of works, but my opinion is that it is not the writings of an apostle. Some day I will use James to fire my stove.
(Bartling, 2; Weimar, Tischreden [5], p. 5854)."
In 1542 Luther stated (as recorded in one of the versions of Table-Talk):
“We should throw the Epistle of James out of this school [Wittenberg], for it doesn’t amount to much. It contains not a syllable about Christ. Not once does it mention Christ, except at the beginning [Jas. 1:1; 2:1]. I maintain that some Jew wrote it who probably heard about Christian people but never encountered any. Since he heard that Christians place great weight on faith in Christ, he thought, ‘Wait a moment! I’ll oppose them and urge works alone.’ This he did.
. . .
(LW 54:424).”
Dave Armstrong