Sexual selection enables long-term coexistence despite ecological equivalence