But when I render with HANDBRAKE the machine with more cores at same or higher CPU speed has won everytime.

BOTH WORK. The i7 should be the faster of the 2 if the other parts of the machine are equal.