If I was to buy a brand new truck (unlikely at today's prices), I would give very strong consideration to a Ram with a gasoline version of this engine. Preferably in the most 'detuned' version available, for durability reasons.
The expense of emissions equipment in the newer diesels is why I keep my '01 and would entertain gasoline for a future pickup.
I hear that, I got a moden diesel just for the driving experience, TCO overall is much higher, I think it's always been, but I agree it spread even more now a days from a gasser to Diesel.
The current 6.4L gasser is a high reviving engine/towing experience, it's capable and well proven platform, but it lives at around 3500-4000 pulling marginal loads, I don't think they even can be compared due to the vast differences.
I think I could set cruise control at 80 MPH on the Diesel and pull the same load the gasser would struggle with, then the added fuel stops with the gasser on longer rides are plenty, getting fuel with a gasser and a longer trailer is a struggle at times. The don't always have access for long set ups.
Transmission Ratios I think are similar and final drive ratios offer a few that the diesels dont.
It has its own issues for sure, there are some know upper end valve train issues floating around out there.
No free lunch for sure. But for local driving and smaller trailer loads the gasser is a great option at times.