It comes down to what kind of experience you're after: multiplayer or a story-driven adventure.
Battlefield 3 shines in large-scale online battles with vehicles and teamwork. Mass Effect 2 is a superb single-player sci-fi RPG with rich characters and choices that carry through the series.
Personally, I preferred Battlefield 3, but keep in mind Mass Effect 2 has been out longer, so you can often find it cheaper. If you want a gripping narrative, go Mass Effect; if you crave competitive multiplayer, go Battlefield.