Contradiction with Genesis 49:10
"The sceptre shall not depart from Judah" suggests a future leader from Judah, aligning with Matthew 2:5's prophecy rather than contradicting it.
Genesis 49:10: The sceptre shall not depart from Judah, nor a lawgiver from between his feet, until Shiloh come; and unto him [shall] the gathering of the people [be].
Contradiction with Micah 5:2
Explicitly parallels Matthew 2:5 by predicting Bethlehem as where a ruler will originate, hence it aligns instead of contradicting.
Micah 5:2: But thou, Bethlehem Ephratah, [though] thou be little among the thousands of Judah, [yet] out of thee shall he come forth unto me [that is] to be ruler in Israel; whose goings forth [have been] from of old, from everlasting. [everlasting: Heb. the days of eternity]