Criticize the authors, perhaps--and the fact that culture changes and we don't view things today as it was viewed then. Blaming God when all we know is how the authors wrote the stories and how we now view them through the lens of our own culture, not the cultures in ancient times is rather like blaming the rain when the problem is the leak in the roof.I'm not. I'm blaming God for God's choices. At least based upon the stories.
I am quite willing to consider the Bible as fiction. But that really changes nothing. I am judging the character God based upon how that character is portrayed.