# When are groups with the same class equation not isomorphic?

For 2 groups to be isomorphic, they clearly have to have the same class equation (i.e., they must have the same number of conjugacy classes of each size), but I'm wondering when the converse is not true. Someone pointed out to me that different abelian groups of the same order form a counterexample, since in an abelian group, every element is in its own conjugacy class.

Are there less trivial counterexamples?

Look at the non-isomorphic non-abelian groups of order 8: the dihedral group $D_4$ and the quaternion group $Q$.