The Bible is a small library of different books written by different people at different times. I don't think it's all that surprising that there are contradictions. In fact, I would say that pretty much every faith tradition with a long literary history suffers from this problem. I don't think that undermines that idea we can glean meaningful wisdom from sacred texts.