All gas and all diesel get lumped together which is a disservice to both.
As far as new trucks a stock Cummins is not the same as Fords 6.7 power wise, I've towed heavy with both. Sorry if I offend anyone. Same with ram 6.4 hemi/gm 6.6 vs Ford 7.3- theres a big difference. Gm's 10 speed will help now somewhat.
Anyone that's driven Fords 2v 5.4 triton (or similar) knows the pain of towing with a bad gas setup. 4 speed didn't help. My 98 150 never failed me though. Went to ford 7.3 diesel after that and was much happier. And to think they put the 5.4 in superduty's yikes.
Watch tfl truck pull the Ike there's little difference between the Ford 7.3 GAS, ram diesel and gm diesel pulling 16k lbs (at high altitude which kills na engines). 20 seconds for an 8 mile climb and that was a Cummins HO which couldn't hold the speed limit (nor duramax)
An old diesel will turn less rpm of course and be more efficient than a new 7.3 gas. But if you think a stock mid 2000's diesel will pull a trailer up a grade faster or better than Fords new gasser think again. On top of that the old trucks don't drive as nice or quiet as the new ones. My new 7.3 gas is better than my 7.3 diesel or 5.9 diesel were towing and especially daily driving.
They both have they're place. My last 6.7 Ford was a beast, really liked it. Currently a 2022 7.3/4.30 Ford fits my needs of daily driving, quiet, fast to warm up, can idle without needing regens, fun to drive and tow my toy hauler 15x a year.
Besides normal truck stuff there are other things to consider like cost of repair, down time for repair, fuel fussiness etc. Everyone has a different use case and should choose accordingly.
Not every diesel is a fuel system $10k nightmare dpf clogging someone sneezed while I was refueling problem nor is every gasser a gutless wonder that gets 10mpg cruising.
In 5yrs when I part time rv and go to a 15k trailer then I'll probably be back into a diesel. Might even be a Ram as they have the best exhaust brake, efficient and aren't dead set on making ugly trucks (yet) like 2023 Fords that copied gm's bedsteps and grill. Fords now one refresh away from square wheel wells and ifs.
Older turbo diesels- not overrated vs older gas.
New emission diesels vs some new gas- kind of.