To me, there are far more troubling parts of scripture. Did God actually command Joshua to slaughter every inhabitant of Jericho once the walls came tumbling down? Did God order Saul to murder every remaining Amalekite? Should we rejoice, as we read in the Bible, that Saul has killed his thousand but David has killed his ten thousands? And what aboujt passages from Ex. 21, Lev. 20, and Deut. 22-23? Or, Ex. 22, verses 18 and 20? We could go on and on.
Even Noah and the Flood. As a child I wondered how God could drown everybody but eight people. How many innocent children died as a result, not counting millions of innocent animal?. Cute story, until you begin to analyze it. It was more like genocide.
And was Joshua really able command sun to stand still so that night could be postponed and he could slay more Amorites? Joshua 10:12-14.
Biblical literalism is an enemy of true Christianity. The Sermon on the Mount is the heart of its message.