Sorry to hear about the collision. Glad that no one was hurt. That's the most important thing.
There are a few issues:
1) Did the car respond within an appropriate time window?
2) When the car sounded warning and braked, did it apply full braking force right away or ramp up gradually?
3) Was the collision physically avoidable or inevitable given the circumstances?
Answering these may require data analysis by Tesla. I'm not going to attempt to answer them, but to bring up a few points of discussion. From OP's description, it seems that the car responded appropriately, but didn't brake fully right away. Had it applied full force, could the collision have been prevented?
Tesla's automatic braking already applies more braking power than comparable systems in Mercedes (Distronic Plus) that I've driven ('14 ML, '13 S550, '09 CL). The '14 MB system applies up to 40% of the maximum braking force and beeps to signal that additional braking power is needed. The brakes are primed for full braking so that as soon as the driver responds to the beep and touches the brake pedal, the brakes are clamped with 100% force.
I much prefer the Tesla system because it requires less driver intervention. However, I can see the reasoning behind MB's design decision -- it's because the car isn't always right. If the car senses an impending collision from a ghost reading, an inaccurate shadow of a car, braking 100% right away could end up causing a lot of rear-end collisions. As an example, last year a Kia K900 braked urgently on an empty stretch of highway by itself during Car & Driver testing. Or, if I am speeding up toward a slow car with the intention of turning at the last second, automatic braking would be annoying and potentially dangerous (this has happened to me in both MB and Tesla, with MB simply beeping and Tesla applying a moderate amount of braking that was overcome by additional accelerator input).
Before these cars can interpret situations correctly 99.99% of the time, these will remain difficult design compromises.
One thing is for certain - Model X's braking is an area that needs improvement. The brake pedal feedback is spongy upon hard braking, and the braking distance is longer than expected for a car with this type of (exceptional) straight line performance. I don't know if the brakes were upgraded from P90D to P100D, but given the increased weight and power, the brakes should be sized up to match. The few times I've braked hard, I wish my P100D stopped in a shorter distance. Model S is better. If the Model X stopped as well as the typical Porsche, OP's collision may well have been prevented.