If you're in a country with any kind of decent labour rights, getting let go is 100% better than quitting.
If you quit you don't get EI, you don't get any kind of payoff from the company, and it looks worse than "I was let go due to company downsizing" when interviewing.