Suppose $G$ is a finite group, $H \triangleleft G$, such that $H$ is simple and $Var(H) = Var(G) = Var(\frac{G}{H})$ (Here $Var(G)$ stands for minimal group variety containing $G$). Does that imply that $G \cong H \times \frac{G}{H}$?
If $H \cong C_p$ for some prime $p$, then $G$ is an abelian group of exponent $p$ for some prime $p$, which results $G \cong C_p^n$ for some natural $n$. So by classification of abelian finite groups $H$ is a direct factor of $G$. So $G \cong H \times \frac{G}{H}$.
However I do not know what to do here in non-abelian case.