Machines have made jobs obsolete for centuries. The spinning jenny replaced weavers, buttons displaced elevator operators, and the Internet drove travel agencies out of business. One study estimates that about 400,000 jobs were lost to automation in U.S. factories from 1990 to 2007. But the drive to replace humans with machinery is accelerating as companies struggle to avoid workplace infections of COVID-19 and to keep operating costs low.