How Do You Get Over the Guilt of Infidelity?

It's been my experience that having sex with another person outside a relationship will only enhance it if it's good or expose all the things that are wrong with the relationship.