Listened to a great podcast about layoffs yesterday ( https://hbr.org/podcast/2023/02/why-many-companies-get-layof... ) The takeaway is that layoffs are extremely trust destroying for employees NOT laid off, and in the end not clear they're a financial net positive. Both with direct and indirect costs (lack of engagement from employees, etc).
The main effect is that you lose the trust of the top performers. These will be the in the lookout for new opportunities the day after the layoffs are done. If you cut 10%, expect 10% from the top to flee within a couple of years.
The second effect is related to the fact that companies usually target older people with expensive jobs. In an a big org these are the wizards who have the unwritten cookbooks in their brains. When they leave en masse, a lot of the organizational memory is gone, and expensive operational mistakes of the past are forgotten. These have longer effects that will haunt the company for many years.
The only way you can safely pull off layoffs is if you ensure that anything you do in the company requires the experience of a boot camp. That means that everyone is fungible and you can easily swap them.
And this is what tech did better than any other industry. The average required know-how depth of a tech white collar worker is easily two three levels below when compared to other industries. Pharma and chemicals come to mind from personal experience.