If you have not yet accepted their offer, you still own the car, and you would not be buying it from them, just retaining it. plus receiving a cash sum to compensate you for the damage.
BUT, you will bear the risk that the repairs could turn out very expensive.
If you have accepted the offer, ownership passes to the insurers, and they may have already sold it.