A sticky way to remember the two sins, from R. Kent Hughes, Disciplines of a Godly Man (Crossway; 2006), 139:
Gossip involves saying behind a person’s back what you would never say to his or her face.
Flattery means saying to a person’s face what you would never say behind his or her back.