This is a surprisingly old tale that gets retold in different contexts.
It sits within the history of John Henry and Luddites.
Pro-tip: the term Luddite is an anti-labour slur used to frame the very real concerns and grievances of workers as being some naive, backwards, anti-technology cult who wants to stand in the way of progress. Best to avoid using the term except where you are discussing history.