Both are good.
But according to www.edmunds.com/insideline
The Altima is better.
There are video comparison tests on that website. Both the Honda Accord, Nissan Altima, and the new Mazda 6 beat the Toyota Camry.
The Nissan Altima is more fun to drive, quicker, handles much better, has a better design.
The Toyota Camry is more comfortable and quiet, but a very boring and underpowered car. It feels cheap too.
Both cars are fuel efficient and reliable and both have good resale values.