FWIW, Catholic teaching allows for believing that the laws given in the Pentateuch were not given by God (or at least that Moses didn’t sit up on a mountain and memorize all the minutiae about God not being cool with eating pork), and that the events contained within those first books of the Bible have far more theological than historical value.
Catholic teaching allows for using any part of Scripture as Kleenex as it suits the hierarchy.