Spin-degeneracy breaking and parity transitions in three-terminal Josephson junctions