38: And Peter said to them, "Repent, and be baptized every one of you in the name of Jesus Christ for the forgiveness of your sins; and you shall receive the gift of the Holy Spirit.
16: And now why do you wait? Rise and be baptized, and wash away your sins, calling on his name.
He isn’t talking here about the Holy Spirit but what Jesus said You must be baptized
1 Peter 3:
who had once been disobedient while God patiently waited in the days of Noah during the building of the ark, in which a few persons, eight in all, were saved through water.
This prefigured baptism, which saves you now. It is not a removal of dirt from the body but an appeal to God for a clear conscience, through the resurrection of Jesus Christ,
It is baptism prefigured by the saving of Noah with water that forgive sins and saves us now.