Suppose we have two bodies A and B lying on a horizontal table and the two bodies are going towards each other.
$m_A= m$, $ \vec v_A= -\vec v$
$m_B=2m$, $\vec v_B= \vec {\frac{v}{\sqrt{2}}}$
From the informations given, we see that the two bodies have same initial kinetic energy.
If we find the kinetic energy of the two after an elastic collision, we can notice that the body A with mass $m$ gains some more energy .
Similarly, suppose we have two large bodies with same temperature. If we bring them in contact the molecules will collide elastically with one another.
So why don't their temperature change if the energies of the individual molecules does change ?
Or more specifically
why isn't the same idea of energy exchange true for bodies with same temperature ?
Deriving the fact that energy will transfer (can be ignored)
So let's find the center of mass's velocity : $$\vec v_{cm}=\frac{m_A \vec v_A+m_B\vec v_B}{m_A+m_B}$$. $$\vec v_{cm} = \frac{2m(\vec {\frac{v}{√2}})-m(\vec v)}{3m}\Rightarrow v(\frac{√2-1}{3})$$
In center of mass's frame the velocity of A after collision is given by:
$$\vec v'_A= 2\vec v_{cm} - \vec v_A$$ So, $$\vec v'_A= 2v(\frac{√2-1}{3}) + v \Rightarrow v(\frac{2√2+1}{3})$$
Similarly $$\vec v'_B = {2v(\frac{√2-1}{3})}-{\frac{v}{√2}}\Rightarrow v(\frac{1-2√2}{3√2})$$
So from the above derivation we see that the Energy of each of the molecules change after the head on elastic collision.