I could care less for YJ’s (I don’t mind their interior) ...
How much less could you care??
But on a serious note, as others have said, "best" is too subjective.
The CJ-7 is classic Jeep look that defined much of what we have come to expect a Jeep to look like.
The YJ, particularly with the inclusion of the 4.0L EFI, set the standard that all other SWB 4x4's tried to match. It was both modern and dated at the same time. It also codified the model "Wrangler", which gets applied even to generations of Jeeps that came before the model designation. The YJ also revived the "lifestyle" trim packages that were common in the 70's and 80's, but began to die out during the late 80's and early 90's (think of other 4x4 trim packages such as the "Midnight Express", the "Dude", etc) - to the point that we still have many of the original "lifestyle" trim packages today (e.g. "Sahara").
The TJ kept the
soul of the SWB Jeep, while adding enough modernization to help them retain their "king of the 4x4" status, while also getting many not-so-rugged folk into a Jeep (those who may not have otherwise done so). The early Wrangler models (97-99) were, what many would likely consider, the "peak" of the SWB Wrangler - improved power and efficiency, better road manners, A/C and heat that you know, actually worked, a radio that you could reach, tops that you could take through a car wash, and wipers that wiped when you needed and stayed flat and out of the way when you didn't. The 00+ models were, in my opinion, where Jeep reliability dropped as they were plagued with one issue or another (head gaskets, ECMs, etc), though the amount of negative public perception these issues had would be near impossible to measure. It's also easy to say that the LJ was also likely pivotal in the future of Jeep's success (at least with the Wrangler model).
The early JKs... well, I still remember the day when we loaded up my daughter in her expensive car seat and made our way to the local Jeep dealer, looking to add a brand new JKU 3.8L to our garage. I
knew - and I mean I just knew - that my wife would see the love and joy roll over me and imagine our new, young family taking drives through the canyons and desert with the top off, soaking in the sunshine and fresh air, and that she wouldn't hesitate to plop our money down and take one home. I've never been so wrong about a test drive in my life. About 10 minutes into the drive, she said "this thing kinda sucks", to which I quickly agreed.
The later JKs are better, though still have some quirks. The biggest quirk for me is that I do not fit inside them as well as I do my TJ/LJ, and not even close to anywhere as well as I fit inside the YJ. For me, the JK was the departure away from the "soul" of a Wrangler. Not that this was a bad thing - the modern Mustang is hardly the "pony car" it was back in April of 1964. Things change and that's okay, but the JK is the big shift away from small, nimble, woods-friendly "lifestyle" vehicles to dual-purpose, family wagons.
The JLs take the JK transition a step further. They're more refined and fix many of the quirks of the JK, though at a cost (electronics issues, less interior room while having better ergonomics, stupid pricing, etc). They are indeed the most reliable and capable stock Wrangler made though and they appeal to many, which has saved Jeep (and likely saved Chrysler/Mopar, as much as being previously owned by Fiat can be considered "saved").
For my money, if you're looking for a rig to run around on 31-35"s while having good aftermarket support, relatively easy to fix and maintain, easy to modify, halfway respectable HVAC, and decent reliability, the TJ is the winner. If you want a "classic", a CJ-7 or YJ on 31-32"s fit the bill nicely. At the other end of the YJ spectrum, if you want to build a trail monster while sticking to the relatively limited "structure" of a SWB Jeep frame/body, the YJ is also a good candidate as the utilitarianism of the electronics and other controls are easy to adapt to nearly anything.