Dealers can take the money, fix the damage and still sell the car as brand new - if it hasn’t been titled yet, body work doesn’t need to be disclosed to the buyer. Dealers usually have in house body shops or relationships with body shops and pay labor + supplies in the repairs. A bigger issue is the backlog of work that quickly accumulates in the aftermath of a hailstorm.