Competition and bistability of longitudinal modes in a Raman laser