Consider the semi-direct product:
$(\Bbb Z_{13} \times \Bbb Z_7)\rtimes \Bbb Z_3$
To construct a group $G$, we need homomorphisms $\theta$: $\Bbb Z_3 \rightarrow \text{Aut}(\Bbb Z_7)$ and $\theta_2$: $\Bbb Z_3 \rightarrow \text{Aut}(\Bbb Z_{13})$.
Consider the set of coordinates
$(x,y,z)$
with $x\in \Bbb Z_{13}$, $y\in \Bbb Z_7$, and $z\in \Bbb Z_3$.
From the homomorphism, we can define a group law
$(x,y,z) * (x_2,y_2,z_2) = (x+\theta_2(z)(x_2), y+\theta(z)(y_2), z+z_2)$.
More specifically, consider the groups given by their operations:
$G_1 = (x,y,z) * (x_2,y_2,z_2) = (x+x_23^{z}, y+y_21^{z}, z+z_2)$.
$G_2 = (x,y,z) * (x_2,y_2,z_2) = (x+x_23^{z}, y+y_22^{z}, z+z_2)$.
$G_3 = (x,y,z) * (x_2,y_2,z_2) = (x+x_23^{z}, y+y_24^{z}, z+z_2)$.
It is clear why $G_1$ is not isomorphic to $G_2$ or $G_3$:
$G_1$ has $156$ elements of order $21$, whereas the other two groups have no such elements of order $21$.
I am struggling to see why $G_2$ and $G_3$ are non-isomorphic? If two groups have the same number of elements of any given order, doesn't that imply they are isomorphic?
Both $G_2$ and $G_3$ have $182$ elements of order $3$, $6$ of order $7$, $12$ of order $13$, and $72$ of order $91$.
They are not isomorphic. In fact they are $\mathtt{SmallGroup}(273,3)$ and $\mathtt{SmallGroup}(273,4)$ in the small groups databases in GAP and Magma. This example shows that it is possible for two non-isomorphic finite groups to have the same numbers of elements of each order.
In many examples of this type, there is no "nice" proof of non-isomophism resulting from the two groups having different invariants, and you just have to do it using a direct argument.
An isomorphism would have to map the unique Sylow 7- and 13- subgroups of one group to the other and, since all Sylow 3-subgroups are conjugate, you could assume that it maps a generator $z_1$ of $C_3$ in the first group to either $z_2$ or $z_2^{-1}$ in the second group. In either case, you will find that there are no isomorphisms between the Sylow 7- and 13- subgroups that give rise to an isomorphism between the groups.