The Catholic church answered this question a long time ago.
God (by definition) is perfect. Perfection cannot contradict itself.
Therefore: God cannot contradict himself