It's really the modern diesel emissions systems that are so complicated. So many sensors and misc, it can be hard to diagnose what the problem is.
Also, the 3.0 is really stuffed into the truck. Not an easy engine to work on. At 150K miles the timing belt (I believe) is recommended to be swapped for new. That means pulling a ton of the truck apart to do so.
I loved the engine. I had to trade it because the dealership could never find out what was causing the "service emissions system" code, which put the truck into severe limp mode. I won't likely be buying another 3.0 again.
This 2023 AT4X 6.2, I plan to keep longer than most trucks. As a contractor, I usually trade about every 3 or 4 years, because by that time, mechanically, it is time to move on. Also live in the mountains, on rough roads and 8+ months of winter weather, which is tough on a truck, suspension, etc. But this one, at least right now, I plan on keeping longer. Ultimately, I want a hybrid truck that is totally driven by electric, but has a smaller ICE engine as the onboard generator. That, to me, makes the most sense for a hybrid. And if they become mainstream or more common, then maybe we won't have to get goofy looking trucks that are electric powered. I also still want an onboard ICE engine to be able to recharge the batteries, and add range.
At some point, battery tech will improve (Samsung says they have a solid state battery that holds more charge and charges much faster). When that happens, it will be a game changer. But for now, I am happy enough with my 6.2 AT4X.