God's kindness is meant to lead you to repentance (Romans 2:4 ESV).
God always shows us favor, even when we sin. He never withdraws that favor or grace. Christians live in his favor twenty-four/seven. His grace produces in us God's desired effect.
One thing we naturally do in response to God's grace is confess the sin. But what God really desires for us is that we trust and rest in the shed blood of Jesus. Just as salvation is by grace through faith, experiencing the forgiveness of God is by grace, through faith, as well.
By grace, Jesus took your sins upon himself. By grace, he suffered the punishment you justly deserved. By grace, he offered his blood to the Father on your behalf. By grace, he forgave your sins. Now, through faith, thank Jesus for what he has done and rest confidently in the forgiveness that is yours in him.
If you are still wrestling with what to do when you sin, let faith in the finished work of Christ settle the issue. He has taken away your sins once and for all.
Begin to deal with sins by trusting in the completed work of Christ at the cross, resting in the fact that you are forgiven, and then ask the Lord to begin to work in you to be able to say "no" to sin.
In Him,
Bob Christopher