Are All Losses Created Equal: A Neural Collapse Perspective