I myself doubt AI is quite as good in the real world robotics as it is in coding though, and collective worker action could instead give them a few decades or until broader economic changes allows them to leave that job without being hurt financially.