"factories generally employ the same amount of workers"
Not really. The stats should show that factory workers as a percent of the workforce has been declining.
Thw leadership at my company has said they plan to do more with the same people rather than lay off. But they also seem to have reduced hiring and are removing certain types of roles.
Agreed. When tools evolve significantly the old production process has to be reworked into a new process and that takes time. In complex production lines that will include changes to subcontracting, supply chains, and even finance models. The changes arising in software production today will take years to stabilize into a new normal, even longer if the tools continue to advance in capability as LLMs are doing. And many software-dependent companies will fail in that time for moving either too fast, too slow, or most likely, too short-sightedly.