Let’s be clear, some Jewish or Greek guys got together and pulled some writings from the library at Alexandria then did their best to make these writings fit their ideals and a story about a newly invented people called the Israelites. They then used a god their god at the time and molded these stories around their narrative.
The book of Genesis and its stories originated from Sumeria so they substituted the gods Enlil and Enki for El and an adversary. The story of Moses was probably lifted from a story a legend about the Hyksos. Sampson story was clearly a retelling of Hercules.
Parts of the book of Deuteronomy is older and pure propaganda about a god proping up Hezzekia but even this god maybe not the god we’re led to believe it is today since this king clearly had ties to Egypt. Some of the other biblical writings like the minor prophets were clearly talking about a Egyptian god and even parts of the book of proverbs was lifted word for word from and Egyptian writing. So in the end the stories about Israelites conquering pagans in the Levant and raping girls was some made up fantasy and the archlogical evidence backs this up.