Competition between exit channels leading to the same residual nucleus in heavy-ion reactions