Contradiction with Genesis 49:10
This verse predicts the coming of a ruler from Judah, while 2 Samuel 3:17 discusses the shifting of loyalty to David from the house of Saul.
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 1 Samuel 16:1
God instructs Samuel to anoint David as king, which seems to contradict the ongoing negotiation in 2 Samuel 3:17 to unify Israel under David's rule, after Saul's reign.
1 Samuel 16:1: And the LORD said unto Samuel, How long wilt thou mourn for Saul, seeing I have rejected him from reigning over Israel? fill thine horn with oil, and go, I will send thee to Jesse the Bethlehemite: for I have provided me a king among his sons.
Contradiction with Hosea 13:11
Speaks of God's displeasure with Israel having a king, whereas 2 Samuel 3:17 involves discussions to establish David's kingship.
Hosea 13:11: I gave thee a king in mine anger, and took [him] away in my wrath.
Contradiction with 1 Samuel 8:7
God tells Samuel that Israel's request for a king is a rejection of God, contrasting with 2 Samuel 3:17 where leaders want to make David king.
1 Samuel 8:7: And the LORD said unto Samuel, Hearken unto the voice of the people in all that they say unto thee: for they have not rejected thee, but they have rejected me, that I should not reign over them.