What does Matt 16:19 have to do with the confession of sins?
It speaks precisely and directly to that point.