First of all, there is no way you can deduce that based on what I said since the discussion centered around the open worlds of those game as well as the vibrancy and atmosphere of the worlds.
Second of all, yes, I do think the gameplay of GTA4 is superior to inFamous. Yes, the core shooting gameplay of GTA4 is repetitive as hell and it was also something that grew really tired towards the end of the game much like inFamous. However, in GTA4, you get to do a number of other different things that break up the monotony of the shooting such as driving a variety of cars that all handle differently. You get to pilot choppers around the island. You can watch a limited number of stand up comedy acts. You also get a bunch of different radios that break up the audio monotony of the game. Finally, if you're bored, you can simply drive around the city and explore the various locations it has to offer.
You don't have have any of that in inFamous. From start to end, you are a superhero and the way you move and attack remains largely the same. The world is bland, bleak and depressing which makes exploring it not a particularly attractive proposition. The absurd accuracy of the enemies even at extreme long ranges as well as the difficulty of taking down mounted machine gunners added too much of a defensive element to the game that merely involved you running away or taking cover on rooftops which is all not very fun at all.