I've been both divorced and fired. I got fired because my position was outsourced to India. I got divorced because nobody liked me :).
The firing was basically nothing. I think the key difference, for me as an individual, is that I'm not a "lifer." I'm generally well liked in my jobs and get regular raises and promotions, but I'm not emotionally attached to the vision or whatever. In addition to that I happen to be the type of person who keeps a hefty emergency savings and all that. Financially speaking getting fired was a minor nuisance. I had another job within a month.
Getting divorced was really tough. It was an existential crisis. One day I was one thing, a married man with a child. The next day I was this completely different person, a bachelor with half a child. I didn't have ANY single friends, or childless friends who could do adult things when my daughter was with my ex-wife. I had to re-create who I was almost from the ground up.
The key factor, for me, is the "lifer" status. I was a lifer in my marriage, but have never been for a job.