You need to go to the original Hebrew and Greek and these “contradictions” resolve themselves. For example, Deut 5:17 (as well as the same quote from Ex 20:13) says thou shall not “murder”. (kill apart from the sanction of God). This is not inconsistent with the death penalty God rightfully imposes on many breaches of his law. Just as modern day death penalties do not conflct with the sixth commandment - as Paul tacitly acknowledged in Romans 13.