Sam Dason DDS, and just about everyone else knows that sugar is horrible for your teeth. Sipping sugary sodas is probably the worst because it is a constant flow of acid and sugar around the mouth. But what else can destroy that dentin? Candy and starchy foods tend to stick to your teeth, causing damage. Also, substances that dry out the mouth (alcohol, certain medications) will allow bacteria to grow.
Source: https://www.urmc.rochester.edu/encyclopedia/content.aspx?ContentTypeID=1&ContentID=4062