It’s your ignorant forcing of your worldview into the text. That’s eisegetical reading, rejected by any serious person seeking understanding.
Any exegetical reading of the two chapters leaves no confusion. There is a different purpose in the prose of the two chapters. If you weren’t intent on “disproving” the account, there are plenty of exegetical explanations that clarify and refute your insistance on some “discrepancy”.
Genesis 2 said that Adam was alone, SO God created the animals:
18 Then the LORD God said, “It is not good that the man should be alone; I will make him a helper fit for him.”
How can one read otherwise. Man was alone so God set out to make a helper fit for him. Read on.
19 So out of the ground the LORD God formed every beast of the field and every bird of the air, and brought them to the man to see what he would call them; and whatever the man called every living creature, that was its name.
However, a simple reading leaves them in conflict.
Why didn’t God know that animals would not be a satisfactory helper for Adam. I can still remember as a young kid in Sunday School being taught that this was why man had one less rib than woman.
20 The man gave names to all cattle, and to the birds of the air, and to every beast of the field; but for the man there was not found a helper fit for him.
21 So the LORD God caused a deep sleep to fall upon the man, and while he slept took one of his ribs and closed up its place with flesh;