Do you cure cancer if it means that 100 million people will lose their jobs?
It will be painful for some folks to transition to doing something else for sure.
I know you are just using random numbers but 10 million people die per year.
The benefit would outweigh the cost.