The issue (well there are lots of issues but this one is pertinent to this discussion) with that line of thinking is when people in general become so inefficient compared to machines that it's more efficient and profitable to get rid of the people entirely since machines are so much more efficient.
And yet, in the natural world, you will find that taking their lives will be quite difficult, and will reveal the forgotten strength they possess which the modern industrial economy does not value: survival.
It is easy to get caught up in hypotheticals, and forget that we are all primates in rags scrambling to survive.
in the natural world, if they are genuinely of as little use, they "should die", for the resources to keep them alive is more than the "profit" that they can generate. This is becoming more and more true with more and more automation - the cost of resources to keep somebody alive is getting to a point where their contributions don't really cover it. I dont know if there is a real solution to this problem.