But if the cost of a new machine is the same as a year or two of the old operating the new is probably the way to go.
They aren't; among other things, most environmental harm is externalized. When you buy things that produce climate change or microplastics, the cost of the impact is paid by society generally.
But if the cost of a new machine is the same as a year or two of the old operating the new is probably the way to go.