This is obviously not a contradiction. The critic is reading the verse as saying that the LORD ... he ... could not drive out the inhabitants of the valley. The "he" is Judah, not the LORD.
God is all powerful
Jeremiah 32:27 - I am the LORD, is anything too hard for me?
Asking questions is very important. It helps us learn, understand, and connect with others. We must continuously question ourselves and others to verify we are on the correct path.