As said above, it isn't really much of a competition. The 4870 is definitely a better card. Unless you are getting a massive deal on the 9800GTX then you would want to go 4870.
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.