Competing mechanisms for singlet-triplet transition in artificial molecules