Dynamics of black hole–neutron star binaries in young star clusters