You forgot to mention the rpm vs power/torque curves.
If you factor how the curve runs, as well as the drivetrain...
generally all these will matter even more.
An S2000 or Ferrari F360 have high HP, low NM, and compared to a
WRX, Skyline or some other car with a forced induction engine, that
have comparable HP but much higher NM, they will lose out (unless
in the hands of a skilled driver).
The layout of a race circuit or road will also determine how the
driver uses the powerband (usually between peak NM and peak HP). If
the driver is in a car which requires high RPM (like most NA cars),
or if the turbo kicks in slower (single large turbo 4WD), and the
course is full of tight corners and slow speed bends, a more
responsive car (like a BMW 330d) may actually be even better
despite having relatively lower HP/weight ratios.
There are so many physical factors to consider besides mere power,
speed and weight... and once you factor the human element, that's
when you have a good race.
cheers