Coexistence and competition between different soliton shaping mechanisms in a laser