Let $\varphi_1:K\rightarrow\text{Aut}(H)$ and $\varphi_2:K\rightarrow\text{Aut}(H)$ be two homomorphisms. Suppose that the semidirect products constructed by these homomorphisms are isomorphic by an isomorphism $\varphi$ such that $\varphi(H)=H$. Does $\ker\varphi_1\cong\ker\varphi_2$?. The result is true if $H$ is a non trivial p-group and $K$ is a non trivial q-group, where $p$ and $q$ are distinct prime numbers. However, this is not true in general, so are there additional conditions under which the statement is true?.
Thank you very much.