No, it's corporate accounting practices and tax law which is less math and more underwater chess against stoned monkeys.
I don't recall GPUs being sold for $1 when the bitcoin mining boom settled down...
Well, I'd have to check with a tax expert 'cos that sounds like turning 'capital expenditure' into 'cost of sales' (and that's assuming the hardware was bought and not leased) which will need some accountant-fu & quite likely change the date on which the loss was incurred.
If you're right, though, if I were NVIDIA*, I'd give you $2 so I could bury it & prevent my remaining business being hosed because the market was flooded with cheap product. Again, assuming that I sold it to you outright and not under some complex heads-I-win-tails-your-shareholders-lose leasing contract.
(* Well, I wouldn't, but I'm not a tech CEO...)
You are insistent there must be some voodoo corporate trick where companies they can financial engineer everything into wins. You don't even need to show logically/conceptually how one such example works. All you need to see is the fact that companies lose money, and fail, and go out of business all the time, to see how that is not true.
What you did try to show is just random handwavey things that aren't even consistent.
If you lease an asset, it's no longer yours to dispose or sell.
When you expend capital to buy assets and sell them at a loss -- your bubble scenario -- you are literally losing money. If you destroy them and write them off, you are also literally losing money. There is no magic "heads-I-win" trick here.
Both generate a small tax credit, which is what is supposed to happen, because you lost money!!! If you earn profit of $X in one part of the business and lost money $X in another part you're supposed to receive offsetting credit. You netted absolutely nothing at the end of the year. That's normal and fair!
Cost of sales refer to ordinary goods purchased for resale (like buying a chip to stuff in a chassis sold as a finished computer). Chips used for internal compute or sold as service is PPE. It's tax treatment means that the outcome of write-off is even WORSE!
***
The fact that crypto GPUs were not destroyed is the first point. It is not economically advantageous to destroy and "write them off". The fact that those GPUs were not sold for $1 is the second point. They were worth more than that! The more you sell them for, the less you rely on the tax writeoff, because the tax writeoff is not an advantage!
If you were NVIDIA, your inventory had a real cost incurred in its production (COGS). It's already made. It's done. You already paid the fabs and employee salaries. Selling this inventory for as much money as you can maximizes your economic outcome. There is no world where you net more money by destroying it and writing it off.
I don't know how much clearer this can be.