yes, confession can temporarily ease our guilt.
It's like being caught with your hand in the cookie jar.
You are so sorry but maybe not for taking the cookie as much as for being caught.
Repentance is a deeper understanding and a sincere regret of your sin as well as making immediate changes; turning away from that sin.