"I switched jobs" lets you plan, eg a small gap in unemployment to reduce missed paychecks or to minimize chance of needing COBRA.
"My employer laid me off" doesn't and adds on the implications of a lay off in your field of work, so you get to start your search after being unemployed and possibly in a field with many others looking for jobs.