They had to produce something that could legally be called a pizza to at least fulfill the purchase contract with DoorDash and avoid making themselves legally liable.
But what would probably have worked would be to pull this off with two restaurants, each ordering pizzas from the other, with them sending the same physical pizzas around all the time. Cold and old pizza is still legally a pizza, just a bad one.