I never understand this line of thinking. If a job becomes unnecessary, that’s a gain for humanity, not a loss.
Imagine what has happened to american manufacturing workers since the 80s but happening to everyone on the planet. This is by no means a "gain".