It doesn't account for that. If it did, it would assume improving the efficiency of one thing is equally valuable to improving the efficiency of any other thing, which is absurd.
Like I said, not all destruction is destined to create excess value, but some destruction is, and I am arguing that this is the case here specifically. A counterfactual where this money would've been spent on something even more beneficial doesn't really matter. It wasn't spent that way and it could also have been spent in numerous other ways that are even less beneficial.