# elements in a finite group with different finite order

Let $a, b$ in a finite group $G$ such that $a \neq b$.
I know $|a|$ and $|b|$ divides $|G|$.
Is there any condition for $|a| \neq |b|$, other than looking at the conjugacy classes?