That would be a waste of everyone's time, of course. The priest would refuse absolution and tell them to get themselves right with God before they come back.
How would the priest determine if they were confessing out of a real sense of repentance or if they were secretly doing it for the pleasure of being able to tell someone else and enjoy it with impunity?
How can a priest actually absolve another person of their sins or refuse absolution? Jesus knows our hearts - do you think Jesus would go along with a priest’s decision if the priest were mistaken? Do you think a priest can be mistaken?
A priest can do many things, even deny someone the ‘rite of communion’ within the church, but the rub is that if someone wants to commune with God, he doesn’t need a priest’s permission to do it - Jesus walked as Man and God to allow us a personal relationship with Him and He also told us He was the Path to God the Father.
Believe what you will, but when I pray, it’s to God/Jesus/Holy Spirit and not dead mortals that some mortals in some church has declared a saint.