Ford 6.4 def run from in my opinion. The only thing replaced on the 07 Ram was the turbo. My mom owns that truck and I th8nk that was 4grand or more. She did have a problem with the DPF being clogged...and a software update, otherwise pretty impressive truck. No transmission problems and I think she’s close to 200k so far on that rig. I have heard that the Bosch fuel pumps on the GMs have been problematic. However I believe there is a kit that can remedy that problem, I could be wrong, someone else chime in on that. I really like the GM series trucks, the Allison Transmission is really good. I don’t like the DEF tank during those years mounted below the passenger side door area with the fill located in the engine compartment, but it works. You can delete these trucks, but good old EPA is stepping in a lot more these days and catching people who do, so check your state and see if you have yearly emissions testing.. if you do then leave that thing stock. If it be me and one day it will be, drive them and see what fits you best. Like anything else maintenance is a huge factor here... so by private with records if possible. Get the truck checked by a certified diesel mechanic if your unsure. Hope this helps, I’m sure those who currently own some of these trucks will chime in soon. It would be a hard toss up between the Ram and GM for me personally. The Ram during some of those years had some interior issues, like stuff breaking and issues with the ac system. But when it comes down to engine, the inline 6 is really hard to beat.... my Aunt has an 11 model and repacked a lot of her Ac and dash... little stuff like door switches and stuff like that just break..l but I can’t say much.. my 09 GMC has a cracked dash... ugh..