It didn't matter. The Father chose Peter. Who do you say that I am? Jesus didn't ask because He didn't know. How could anyone know Jesus as Son of God but the Father? A door was opened in front of Peter. Peter spoke the first infallible doctrine. The beginning of the Deposit of Faith from the mouth of Peter.
Immediately Satan swooped through the door and began distorting the meaning of Peter's vocation.
Satan targeting Peter because of the keys and charism to guard the deposit of Faith.
Peter having just experienced Jesus as a son felt he had authority to remonstrate with Jesus.
It's funny, the very events that would have happened to the lead Apostle,whoever it was ie; Satans focused attacks, are used to defame his character instead.
Scripture describes a person experiencing deception directly from Satan right after Receiving and speaking infallible truth and instead of realizing that for what it is ,Satan attacking the newly appointed guardian of faith in Jesus, it's considered as a reason Peter isn't fit to lead.
Ever wonder why none of the Apostles are singled out in Scriptures? Only Peter was put to the test. Both heaven and hell were treating Peter as leader of the Church.
Have you ever heard of Jesus Christ? He is the Son of God. He is the Savior of the world. He was the one who was sacrificed for all sins committed. He was the one who was resurrected. He is the one sitting at the right hand of God.
Peter was just one of Jesus' disciples. He was clearly a flawed man. I have no doubt that the Holy Spirit inspired the negative portrayals of Peter in Scripture so that he would not become the object of adoration and worship given him by the Catholic denomination.
All praise, glory, and honor belong to Jesus Christ alone. Not to His flawed disciple.