head to head
Neither is meaningfully harder - they pose close to the same test. The widest gap is execution, and it is a single point.

Execution · Competitive PvP
Blockbuster 2009 sequel famous for killstreak chains and frantic multiplayer.

Execution · Competitive PvP
Class-based team shooter with deep mind games.
Call of Duty: Modern Warfare 2 leans Execution (Competitive PvP); Team Fortress 2 leans Execution (Competitive PvP).
Call of Duty: Modern Warfare 2 leans a little harder on execution, though the gap is small.
Call of Duty: Modern Warfare 2
Fast time-to-kill rewards raw aim and reflex
Team Fortress 2
Projectile aim and rocket jumps reward hands
Team Fortress 2 leans a little harder on reads, though the gap is small.
Call of Duty: Modern Warfare 2
Outguessing human rotations and flanks
Team Fortress 2
Spy/sniper duels are pure prediction
Same score on variance - which means the number cannot separate them. The difference is in what each one asks of you.
Call of Duty: Modern Warfare 2
Spawn flips and killstreak randomness
Team Fortress 2
Random crits and spread inject RNG
Same score on optimization - which means the number cannot separate them. The difference is in what each one asks of you.
Call of Duty: Modern Warfare 2
Killstreak economy, loadout and map knowledge
Team Fortress 2
Class loadouts and map routes solvable
A matching score does not mean a matching test. Two games can both sit at 10 on execution and demand completely different things of you - which is why the reasoning above matters more than the number beside it.