Competition between phytoplankton and bacteria: exclusion and coexistence