depends on what kind of offroad you're looking to do.
i've wheeled nearly everyweekend starting 2020 in my 5th gen 4runner and that thing has a shorter overall length than the Ram with 5'7" and with a Kings 2.5 lifted 2.5 inches and 33s I was able to go through most obstacles without a care.
then, with my Rebel on stock wheels and tires (33 in) and Fox 2.5 lifted 2.5in over stock non-ORG/ Rebels, I managed to hit my tailpipe hard and dragged it going through one of the steeper climbs, and then my fuel tank skid got scraped and dented while I was crawling over a very rutted hill 10 minutes later.
A few observations:
-Hitting the tailpipe was definitely driver error. I am not used to how long the 5'7 is on the trail, and instead of slowly starting the climb in 4L i just gunned it in 4H like I used to do with the 4R. Had I started the climb slow and make sure my rear end cleared, I'd probably just tap the pipe on the rock or at worst, dragged it instead of slamming my rear end on the rock.
Solution: get used to how long the damn truck is and stop gunning for it every time lol. also a set of 35s may help with departure angle.
-Hitting the fuel tank skid was for sure hardware issue. After the tailpipe incident I quickly learned my lesson and started to crawl over big obstacles instead of just gun through them. And yet, due to the long wheelbase, the breakover angle suffered. And so my fuel tank scraped and dented. But good thing there's about 2 inches of gap between the skid and the tank.
Solution: a set of 35s or even 37s will for sure help with breakover, as it creates more ground clearance. In this incident, that few inches does make a difference.
Conclusion:
If you're doing offroading often, especially climbing, breaking over, and desending, a 5'7 will be better due to shorter wheelbase (more nimble, especially with breakover angle).
If you're doing a lot of camping that don't require going through tons of difficult rated trails, go with a 6'4.
The only time I long for a 6'4 is when I look at my roof tent sticking out the back of the bed, and that's about it. Through my 4K miles of ownership so far and all the wheeling and camping I had, not once did I tell myself "I should've got a 6'4."