"Church teachings" must never be thought to have been equally "given by the Inviolate Word of God." There are indeed essential, fundamental Christian doctrines, which the Church of Rome shares in teaching, and which may be considered inspired by God. And then there are a lot of decent doctrines that were developed in a way that was consistent with those original doctrines. But then too there are a lot of much more questionable developments. These include not only a good bit that the Catholic church "teaches" regarding sexuality, but also even the very pretense that the church's role is to make detailed pronouncements on sexual matters.

This is a matter of history, and the Catholic church is a creature of history, affected by changes in circumstances, ideas, and the influence of personalities. What we will have to give an account of is how we used our heads to evaluate such historical phenomena as the Church of Rome.