Borderlands is the stronger recommendation, and by a comfortable margin if you value hours played per dollar.
It offers an enormous amount of content, a loot system that keeps the reward loop going long after the main story ends, and a lot of replayability thanks to the class and skill options. Co-op works with anyone, friends or strangers matched from the same lobby, and the game is arguably at its best with a full group.
Infamous is a good game with a tighter, more authored campaign, so it is the better pick if you prefer a focused single-player story over an open-ended loot grind. But for sheer volume of play, Borderlands earns a five out of five.