Resigning can sometimes look better than being fired, as it can be perceived as a proactive decision. However, the context and reason for leaving are also important.