A cavity is tooth decay that is closer to the surface of the tooth and requires the decayed part to be removed and replaced with a filling. A root canal treats the inside of the tooth where the roots are, and clears away the tooth decay and infection.