It depends on the speed of the roll over.
I've seen several cars roll while doing difficult 4WDing but they were at low speed and the car just fell on it's side. These cars were righted, oil cleared from the cylinders and then driven home.
Rollovers on sand can sometimes be at high speed which can result in the car flipping several times cause extensive damage and personal injury.
I have not rolled any of my cars..............yet, but I have stood one near vertical on the front wheels.

Tony