It also doesn’t address magnitudes.
Quantity of freight is relatively fixed.
If running trains half as long. Reduces derailments by 20%, you now have 60% more derailments, because you have twice as many trips.
It is rare for more than a dozen or so cars to detail at one time.