Generation of even and odd coherent states in a competitive two-photon process