CCC 424 Moved by the grace of the Holy Spirit and drawn by the Father, we believe in Jesus and confess: 'You are the Christ, the Son of the living God. On the rock of this faith confessed by St. Peter, Christ built his Church.
“CCC 424 Moved by the grace of the Holy Spirit and drawn by the Father, we believe in Jesus and confess: ‘You are the Christ, the Son of the living God. On the rock of this faith confessed by St. Peter, Christ built his Church.”
You seem to think there is some conflict there. There isn’t.
Right - the church was built on what Yashua said to Peter not to build a building in Rome.