head to head
Grand Theft Auto V asks more than inFamous 2, and the gap is reads.

Execution · Practiced Mastery
Sandbox crime playground spanning shooting, driving, and a persistent online economy.

Execution · Practiced Mastery
Superhero sequel adding melee combat and a karma-split power arsenal in New Marais.
Grand Theft Auto V leans Execution (Practiced Mastery); inFamous 2 leans Execution (Practiced Mastery).
Same score on execution - which means the number cannot separate them. The difference is in what each one asks of you.
Grand Theft Auto V
Driving and shooting demand decent inputs.
inFamous 2
Faster combat with melee and aimed powers
Grand Theft Auto V leans clearly harder on reads.
Grand Theft Auto V
Online PvP exists but mostly gear/positioning, not modeling.
inFamous 2
Scripted enemy factions, no adaptation
Grand Theft Auto V leans a little harder on variance, though the gap is small.
Grand Theft Auto V
Some mission and lobby randomness.
inFamous 2
Static world, fixed encounters
inFamous 2 leans a little harder on optimization, though the gap is small.
Grand Theft Auto V
Heists, money loops, builds learnable.
inFamous 2
Karma-gated power trees shape the run
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.