As mentioned, one runs the full gambit of bike frames...
Some aluminum frames are mighty heavy.
Some steel frames are paper thin.
Carbon Fiber doesn't dent

Of course, what might dent a steel frame could crack the Carbon.

Even so, road bikes are intended to be ridden on the road. MTBs are intended to take abuse and are built stronger throughout.