That’s all fine and dandy but only because you KNOW. If all you have to go on is Carfax showing it was damaged or in an accident, you have no clue how bad it was or how it was repaired. More often than not corners are cut because the insurance companies dictate it. Carfax only gets its data from the police report so the crash severity is not accurate because what looks like a simple front bumper being damaged could have damaged thousands of dollars or sensors behind the bumper and all the air deflectors and shields under and behind that often get left off.
As in the case of the car I bought, Carfax showed it was in an accident and a date with no other information. I paid $2500 out of my pocket for the Mercedes dealer to put it on the frame jig and pull the right front strut tower back into place and they showed me the frame horn had been damaged and was pulled back in place using heat which is absolutely the wrong way to fix that. He said they would have recommended a frame horn replacement which would have cost $5000 in parts plus 40+ hours in labor to pull the drivetrain to fix which would have totaled the car. But the car still drove decent and paint work was absolutely beautiful. What was replaced/repainted looked no different from the factory paint. But everything under it was trash.