If you have a cavity, getting it filled can save your tooth and its functionality without necessarily affecting your smile. If you have the tooth pulled, you will be left with a gap unless you replace the tooth with a denture or implant. Filling a cavity is usually less costly than tooth extraction plus the placement of a denture or implant.