Suppose $N$ and $H$ are groups and $\phi: H \rightarrow \operatorname{Aut}(N)$ is a homomorphism. We know that $N \rtimes_{\phi} H = N \times H$ if and only if $\phi$ is trivial, but this question is a bit different.
Does $N \rtimes_{\phi} H \cong N \times H$ imply that $\phi$ is trivial?
My first idea is that there should be a counterexample, but I haven't been able to figure out anything yet.
Since nontrivial semidirect products are always nonabelian, we definitely need at least one of $N$ or $H$ nonabelian. I think finding a counterexample to the statement would also be equivalent to finding $G$ such that $G = NH = N'H'$ where
$N \cap H = N' \cap H' = 1$
$N \cong N'$ and $H \cong H'$
$N, N', H' \trianglelefteq G$ but $H$ is not normal in $G$