I looked on Kelley Blue Book and, not knowing your exact model, I put in a 2008 Volvo and took a guess at a model (one that looks like an SUV) and I got the value being about 5k, for one with 100k miles on it. That means you’ll be paying that much in body work as the car is worth (approximately). I think if you did have collision insurance, they wouldn’t even fix it, they would total it and pay you out for it.
I know body work is extremely expensive. I have a 2015 Honda SUV and I was just tapped on the rear bumper this past summer, very minor body work and it cost 3k (paid by insurance).
The Honda dealer told me the car should last till around 250k in mileage, so you have that, that your engine was probably still good, but still, looking at what your car is worth at present, and looking at how you don’t know the extent of the body work until it’s opened up, it’s a gamble.
Maybe you could let the body shop guy open it up and give you a better idea of the cost. You might have to pay for an hour or two of labor, but maybe it won’t be that much once he does that. If 5k, maybe I would go for it, if I were you, because you know the history and it does have mileage that’s not awful, but definitely not 10k. For 10k, I’d say I’d take that and put it down on a new car. If you paid t0k to fix it and then turned around and sold it, you probably wouldn’t make your money back.
Also, something else to consider, if the damage was to the frame, they will tell you they can straighten the frame but it might never be the same again.
You can also ask the body shop guy what you might get for it if you sold it for parts. You could, if you’re into researching it, find out from a few places what you might get if you sold it for parts, Engine should be worth a few grand, I would think. Transmission, alternator, they should all be worth something to someone who needs the parts.