Dynamical parity selection in superconducting weak links