i had a YJ and two TJs. in my opinion the TJ is much more comfortable and better if you want to use it as a daily driver.
but most of the people with YJs say that the TJ is for girls and not a real jeep.
If ride quality is a high priority for you, but you still have to have a Wrangler, then I would suggest going with the new 2007 Wrangler Unlimited 4 door. The extra wheelbase gives it a smoother ride. Personally I think it rides the best out of all of the wrangler years.
Now if you're looking for something a little less harsh on the wallet, then I would look at a Wrangler TJ, which is a 1997-2006 Wrangler. They use coil springs instead of a leaf spring suspension and it is a bit better, however it'll still rattle your kidneys after a while.
The best advice I can give you is to go out and take a bunch of test drives to find the right Wrangler for you, since everyone's opinion is different.
A forum community dedicated to Jeep Wrangler owners and enthusiasts. Come join the discussion about reviews, performance, trail riding, gear, suspension, tires, classifieds, troubleshooting, maintenance, for all JL, JT, JK, TJ, YJ, and CJ models!