Risking some downvotes here, but just like most stories, not every character in the Bible is supposed to be a paradigm of morality. Just like in any story, people do bad things.
Obviously this post is somewhat satirical, but dunking on something like this just reminds me of book banning arguments, and that general lack of literary comprehension. There’s better things to take issue with.
“Good” also doesn’t mean flawless at all times. Characters can make mistakes and still be “good” without you having to justify everything they’ve done as perfect.
An even better example is King David, the one and only “man after God’s own heart” taking another man’s wife while he was fighting David’s war, and then arranging his death to cover it up after he got her pregnant.
Arguing that that, or this, is advice for the reader, or meant as an example of something you should do, is a comical straw man. A narrative doesn’t usually stop to explicitly label “good” and “bad” for us like children. There’s loads to complain about with popular far-right Christianity, why would we invent ridiculous arguments that are easy to debunk and make us look like we don’t have good literary comprehension?