We read in 1 Cor 10: 27-29 how St. Paul takes a liberal view on the culinary habits of the faithful :
If an unbeliever invites you to a meal and you are disposed to go, eat whatever is set before you without raising any question on the ground of conscience. But if someone says to you, “This has been offered in sacrifice,” then do not eat it, out of consideration for the one who informed you, and for the sake of conscience— I mean the other’s conscience, not your own.
But St. Paul goes on to state in Verse 29 and 30:
For why should my liberty be subject to the judgment of someone else’s conscience? If I partake with thankfulness, why should I be denounced because of that for which I give thanks?
What St. Paul advises the faithful in Verses 27 -29 (first half), is that one should not create scandal for a man of simple faith, by eating the food offered to pagan gods . But in Verses 29 (second half) and 30, he appears to be saying that one should develop one's own conscience which is not guided by that of another person.
My question therefore is: According to Catholic Church, is there an apparent contradiction between the intent of St. Paul in 1 Cor 10: 27-29 vis-a-vis that in verses 29-30? How does the Catholic Church explain the contradiction?