Competition between CO and N₂ Desorption from Interstellar Ices