Hmm. Make sure the sunroof issue has nothing to do with the accident.
It sounds like your gut is telling you... maybe not.
Bodywork is okay under some circumstances, but if your gut is questioning the integrity of the car, pass.
There will be another. If it's the wrong car, wait. You will regret your impatience in the future.