Ground states of nonlinear Schrödinger systems with mixed couplings: the critical case