There are a lot of problems with trying to tease a coherent overarching narrative, much less a coherent
morality, out of a canon that has nothing of the sort. There are part of the Old Testament that were likely written before the Israelites were even monotheist. The Gnostics found the contradiction so irreconcilable they decided the God of the Old Testament was really an evil god who created our fundamentally flawed material universe as a prison.
There is no "God" of the Bible per se because the "Bible" itself is a, dare I say it, social construct and "God" is a mirror that people hold up to reflect their understanding of nature and morality, and that that context is always subjective and transitory. To me that conversation that humanity has with itself over time as it tries to reconcile a chaotic and arbitrary universe is far more interesting than anything one learns in Sunday School.