Well it depends what you're looking for. COD is much more realistic, and the campaign pretty much kicks ass.
TF2 is, in a nutshell, tons of fun. Not to mention it's only twenty bucks. Try getting a demo of COD and a guest pass for TF2 and see which one you like better.