That depends entirely on what you enjoy.
If the idea of being a superhero with electrical powers, making choices that push you toward good or evil, appeals to you, go with inFAMOUS — though the sequel had already arrived, so it may be the smarter purchase, or you could simply get both.
If you want a sweeping, cinematic adventure with beautiful locations and a story that pulls you along, Uncharted 2 is the one. It is a personal favourite and still holds up remarkably well.
Both are good games. If forced to choose, Uncharted 2 is the safer recommendation.