Next year the Yankees will have holes at SS and possibly 3B ( If they decide to do something with A-Rod ). Both of them have things to love and things to hate. Both hit Right Handed so the short porch wouldn't give either one an advantage. Hanley is younger at 30 than Hardy at 31. Hanley has been injured in the past but Hardy also has had some injury's.
J.J Hardy is the more rounded out player of the two. J.J won the Gold Glove at SS last year and the Sliver Slugger. Hardy gives you a power bat at a position where power isn't that common. He is older than Hanley but healthier. His Gold Glove gives him an edge over Hanley on defense who is a poor defender. The Yankees like ground balls and have a few ground ball pitchers. That works into Hardy's favor. But Hardy does have some flaws. He doesn't hit for average but does have enough power to make up for it. Hardy also might take less money to get than Hanley due to his lower salary.
Hardy is a good defense shortstop who hits for power but not for average. He would be a favorite for the Yankees pitchers due to his glove.
Hanley Ramirez is one hell of a hitter. Power and average give him an advantage over Hardy. He also gives you a power at a position where power isn't that common. He is younger but has a rough injury history. Hanley is a very poor defender but has a great and deadly bat. He does have an edge over Hardy in that he played a season at 3rd. His salary is higher than Hardy and most likely going to be more fought over than Hardy. His age is one thing he has over Hardy. The Dodgers have been trying to resign him all year. In my mind he wont be on the market next offseason.
Out of these two I would want J.J. Hardy. I like the bat and glove combo. I would also take Hanley Ramirez ( Who wouldn't? ). Hardy also has been in the AL East which would help him over the pitchers in this division.