Ah, playing the range card...
Modern ULSD has 17-19% more potential energy than pump Gasoline. And the diesel cycle is slightly more efficient at converting that potential. For most emissions-legal trucks, the delta is about 20%. In other words, with engines of similar capability you'll go 20% further on the same volume of fuel with diesel. If the average fuel tank size is 25 gallons, that's perhaps the difference between 500 miles on a tank of diesel versus 415 miles with gasoline. 180 lbs of diesel versus 165 lbs of gasoline. At equal weight, you'd be able to carry 2 more gallons of gasoline, good for only 30-35 additional miles. Of course, the average diesel engine and related added components (DEF tank, intercooler and plumbing, etc) weighs perhaps 175 lbs more than the gasoline engine option (some are WAY more than that -- Cummins 6.7L comes to mind). That's about 27 gallons of gasoline for the same weight.
All told, a diesel truck with 25 gallons of fuel weighs about the same as a gasoline truck with 55 gallons of fuel, give or take. A Cummins 6.7L might get 20 mpg where the same Ram with a 6.4L Hemi may only make 15 mpg.
Equal overall vehicle weight:
25 gals x 20 mpg Diesel = 500 miles of range.
55 gallons x 15 mpg Gasoline = 825 miles of range.
Of course, if a diesel gets 20% more range per gallon, but the gasoline truck can carry 220% more fuel for the same overall vehicle weight, gasoline wins.
Or, if you're looking at VOLUME rather than weight, you'd run 25 gallons of diesel but to achieve the same range you'd need to carry 20% more gasoline, or a total of 30 gallons of gasoline. A gallon is 231 cubic inches. So having to carry 5 additional gallons of gasoline would take up 1,155 cubic inches or 0.668 cubic feet. That's right, less than 1 ft x 1ft x 1 ft... although most people know what a 5 gallon spare gas can looks like.
Of course, the US national average price of regular unleaded gasoline is currently $2.41/gal where pump diesel is currently $2.91/gal (eia.gov 02/10/2020 data). So that 25 gallons of diesel will cost $72.75 and 25 gallons of gasoline will cost $60.25. At 20 mpg diesel, that's $0.15/ mile. At 15 mpg gasoline that's $0.16/ mile.
Weight? Gasoline wins when it comes to overall vehicle weight.
Cost? About equal, but gasoline wins (especially when considering the Cummins option alone is over $10K, and there's still higher maintenance costs, higher repair costs, and DEF to factor in)
VOLUME? Yep, to go the same distance you'd need to carry 20% more gasoline which takes up... not much space
So it depends on which metric is critical to your application, and even the trip planned. Pinning your need for a diesel vehicle on "range" seems really quite silly, but again your particular and specific need may somehow really require that range where carrying a spare 5 gallon can would either push you over your payload limit, or maybe you couldn't possibly find another spot to carry another cubic foot of gear, and what you do carry is more critical than range. Your metrics, your decisions.