Through faith we understand that the worlds were framed by the word of God, so that things which are seen were not made of things which do appear.
(Hebrews 11:3) KJV
Genesis 1 and 2 aren’t contradictory, they have different narrative style. People who want them to conflict are looking for an excuse to dismiss the truth, because they don’t want the truth.