Both episodes were great but the one I liked the most was 167. The Pain vs Kyuubi Naruto fight was the one that I replayed the most. That episode was beautifully animated and you could even see the full impact of the Kyuubi's punch on Tendo Pain. Though, the art-style used was horrible.
However, I did like 322 more than 167. I just love watching Madara showing off his awesome skills.