Salt is a much harder abrasive than baking soda, which is the reason why dentists don't recommend using it for whitening purposes. Baking soda is a milder abrasive and thus makes a better option for this task.