Which denomination or sect taught you that doctrine ?
Paul confirms the holy catholic apostolic church is founded on the apostles and prophets of Israel, Jesus Christ himself being the chief cornerstone. It is not founded on Peter's profession of faith, albeit the LORD chose Peter as his delegated shepherd.
Now therefore ye are no more strangers and foreigners, but fellowcitizens with the saints, and of the household of God; And are built upon the foundation of the apostles and prophets, Jesus Christ himself being the chief corner stone; In whom all the building fitly framed together groweth unto an holy temple in the Lord: In whom ye also are builded together for an habitation of God through the Spirit.