What processor is better?

The primary difference between the 2 is the QX9770 uses a 1600mhz FSB and has a 136w TDP, while the Q9650 has a 1333mhz FSB and 95w TDP:

Personally, with those as the choice, I'd go with the Q9650 and overclock it. With a lower TDP, you will have less heat to dissipate.

When i was looking at an upgrade for my legacy system, I went with the Q9550 and overclocked it to 3.5ghz. They are much cheaper on eBay than the higher models and the performance is pretty decent. Depending on the price or the QX9770 or Q9650, you might be better off getting a newer CPU.

What motherboard are you planning to use?