Glad you're OK. An accident can be unsettling to say the least.
My suggestion is to see how well the car is repaired and then decide to keep it or flip it.
I had a major accident in my retired E60 in 2010 and kept it for 1.5 yrs before I traded it this year for my F10. I was extremely pleased with the repairs and never had a single issue with the way it performed. Another reason I kept it was to minimize the pocket hit. I estimate I lost 13% of the value at trade-in. If you trade immediately 13% of a larger value would be a huge hit versus 13% of a future value wouldn't hurt as much. Either way it sux but not every place has diminished value laws. Its one reason why I pay an extra $85 in insurance for full replacement car coverage for the first two years of ownership.
GL with the repairs. Mine involved the entire drivers side, rear suspension and both bumpers with a cost of $14,000.
2012 BMW 535i X-drive; Space Grey/Black Dakota, Fineline; Executive (Auto trunk, NAV, HiFi Prof, Lumbar, Rear Cam, SIRIUS, Voice), Technology (Blind Spot, Hi-Beam Assist, Lane Departure, Surround View), APPS, Rear heated seats, Tint.
Retired: 78 300D, 81 300SD, 87 190E, 88 Porsche 924, 89 260E, 93 300E, 97 Volvo 850, 98 E320, 03 BMW 325iT, 02 C230 Sport Coupe, 08 BMW 535i