I'd buy it if it's a hybrid and it's a deal, also the dealer must throw in some good extended warranty.
Doesn't matter where you go now, everyone has their own issues, Toyota has been good with it but the hybrid just reduce the "desire" to modify powertrain, put on some decent bolt on shocks and do 37s and just run it.
The 3rd gens are either great trucks, or a total lemon. There doesn't seem to be an in-between.
I have a close friend with a 23 and a cousin with a 24. Both love them and have had zero problems. I would buy one, but not with out a really good extended warranty.
The crazy thing about the 2.5 gens is they stopped losing value as soon as the 3rd gens started crapping out. I bought my 21 used for 35 about 2ish years ago and could probably sell it for that today.
I'm sure it has gone up, I made a mistake of looking at new RHO, the general manager at the dealer wouldn't stop throwing me offers on the truck, it's actually nearing what I paid for in '21 + what I spent on mods, we have essentially the newest old truck.