Is it true that if $A$ and $B$ are two non-abelian finite simple groups, then the only finite group $G$ which has one copy of $A$ and one copy of $B$ as composition factors is $G = A \times B$? If not, could someone give a counterexample or even better, a reason why this isn't true?
Certainly, these are the two types of extensions we have to consider:
$$1 \to A \to G \to B \to 1$$ $$1 \to B \to G \to A \to 1$$
It seems true so for all the examples I tried, but I don't have definitive proof.