If automated AI rewrites are generally feasible, then the marginal price of nearly all software trends to zero.
The 5-day-old code in chardet has little to no value. The battle-tested years-old code that was casually flushed away to make room for it had value.