I believe those things in the OT are records…“testimonies” of how those living at the time understood God…“our God must want us to have the land…our God wants us to kill these people…they’re pagans…they’re evil…they need to be eradicated”…of course “our God” commanded these things…and “we” were too happy to carry them out.
Did God command those things…no…did the people believe God commanded those things…of course.
That God is fully understood in Jesus of Nazareth makes sense to me…