They would rather delete the movie to claim the tax break than sell it to another studio offering more than the tax break.
If you think they actually lost that amount of money: https://en.wikipedia.org/wiki/Hollywood_accounting
Did they not incur such losses? Did they claim to delete the movie but actually kept a backup? Granted, the loss is self-inflicted, but that's not a relevant factor in the tax code.