I was the victim of a terrible car accident around a year ago where my E92 335i saved my life.
It was a head on collision and the collective speed at the time of impact was upwards of 140MPH, this is said without any exaggeration.
It came down to fine margins. I survived, albeit with extensive injuries.
It I had been in an E46, I would almost certainly not be here. If my E92 had been a damaged repaired car and something not been totally up to scratch . . . .
IMHO it really depends on what the damage was and what the repair was. To write off a new car like this, the repair costs need to be significant so we must assume that the damage was therefore quite extensive.
As cars get older and their values are much less, when factoring silly dealer repair costs to repairs, perfectly decent cars are written off for what is non structural panel damage.
In these instances, it may be worth considering a cat d car, but this would likely not be the case with this car and the damage was likely far more serious and to the vehicle structure.
Therefore I would be careful with repaired cars such as this.