There's not really a big difference between a firing and a layoff, except in terms of scale. Rarely are whole groups of employees fired, but layoffs are -- well, precisely that.
When planning layoffs, managers are usually told to identify the "dead wood" in their organizations -- unproductive, wasteful souls. That'd include our corporate politicians, and in some cases, they are actually included.
"Why does so-and-so still work here?" can sometimes truthfully be answered "So we'll have someone to lay off when the company calls for 10% cuts."
I think the only other time that layoffs are a good idea is if you're closing an entire business unit/department to retreat from a market and focus on your strengths.
Or even better, never hired in the first place.
Frequent layoffs are evidence of incompetent management, as they keep hiring people they don't actually need and then must let them go again. Better to just go slow on hiring, adding people only when absolutely necessary. Then layoffs are unnecessary.
Here's what I mean.
The corporate world seems to have Layoff Fever. So many of the 2009 layoffs seemed as though they were inspired solely by herd mentality, and perhaps by a desperate attempt to please investors. Layoffs cost a lot of money in severance packages, decreased ability to execute, and probably more. A layoff is a bet against the future.
Conversely, though, if you've ever worked at a larger company, you may have noticed people who don't actually seem to do anything except play political games and collect paychecks. It's corporate welfare; they take more away from a company than they contribute. Those people should be laid off in any economy. Unfortunately, because of their political savvy, they usually survive at least the first rounds.