It's better to be fired if you've been there a while. You can then collect unemployment for a few months and be really picky. I've actually never been fired but have felt like a sucker when a colleague was fired at the same time I quit and he was getting unemployment while I had nothing. Though you probably need some solid references to make up for a firing.