The Bible definitely has all the hallmarks of a work that was authored by ancient men. A wise God would not do such a poor job.
There's no way to make sense of the morally questionable commands and discrepancies in the Bible, in such a way that does not either expose the Bible as a purely human work; or paint its divine author as a grossly irresponsible communicator responsible for much suffering due to his ambiguous communication.