The Short Version
The evidence does not support a blanket claim of equal dental harm. Sugar-free soft drinks can damage teeth through acid-related enamel erosion at levels that may be similar to sugary soft drinks, but sugar-sweetened drinks also raise cavity risk through fermentable sugars. That extra cariogenic pathway makes sugary drinks generally more harmful overall to teeth.