The latter points are true. But it's also the case that radical reskilling for very different job roles (with possibly rather different market salaries and, honestly, different from many people's job preferences) is tough too. Probably hard to come up with reliable rules.
In cases like that, the layoffs really do seem likely to be damaging to the companies. If circumstances change for a company and they can no longer effectively use all their employees, the most obvious solution is to get rid of employees, but it then makes it far more difficult to recover when positive opportunities present themselves. I think companies trick themselves into believing that since hiring and firing employees is relatively quick, it's a good tool to adapt to changing circumstances in either direction. But that ignores the time it takes for a new employee to become fully productive and the increased difficulty/cost in hiring new employees if your company has a reputation as an unreliable employer. It also ignores the potential boost to productivity that can come from employee loyalty and job satisfaction and security.