They are both equally as good, you can obviously get much more on a 27" , go for the most powerful processes you can afford.
If I was to upgrade my 2009 27" I'd go for another 27" with 3.4GHz Quad-Core Intel Core i7 and a SSD, least amount of ram as it was much cheaper to buy from crucial than apple (not sure if the difference is as big these days)