God shares His glory with no man. That goes for Peter as well as anyone else. Jesus Christ is the Rock, and Peter confessed Christ as the Messiah. Jesus Christ is the Solid Rock, and those who believe in Him (not some imaginary ecclesiastical church, not Peter, not the Pope, nor upon any other man or organization), are building on a sure foundation. “On CHRIST THE SOLID ROCK I STAND, ALL OTHER GROUND IS SINKING SAND.”
But that is not what Jesus said,
And I say also unto thee, That thou art Peter, and upon this rock I will build my church; and the gates of hell shall not prevail against it. Mat 6:18