Your statement on speed is also odd. Record setting cars may burn gas, but your typical car driving around a city or highway needn't ever go faster than 160km/h. Most cars can achieve this, and most modern cars, whether diesel or gas, can achieve this without much difficulty.
This leaves us with acceleration, where diesel vs gas is equally unclear. As small diesel engines often ship with turbos, you'd be perhaps comparing a turbocharged 2.0L diesel vs a normally aspirated 2.0L gas engine. Assuming roughly equivalent mass of the cars, with higher low-end torque, the diesel will win just about any street race.
If what you're comparing is purchase price to acceleration, then indeed the gas cars may win.
This is really wrong. It's a weird myth that gets perpetuated in America where people don't really drive diesels.
Let's compare a 2.0L diesel Golf TDI to a 2.0L petrol Golf GTI. Same car, same displacement, both turbo engines.
The Golf TDI does 0-60 in 9.0s and a quarter mile of 17.0s@84 mph.
The Golf GTI does 0-60 in 5.7s and a quarter mile of 14.2s@100 mph.
There's a staggering difference in performance there. The TDI is so slow that it's genuinely difficult to find a Motor Trend instrument test on a slower car, because at that point, it's too slow to really bother.
I found the 2018 Rav4: 0-60 in 9.3s and a quarter mile of 17.0@82.
Their difference in 0-60 seems to be 6.4s vs 7.4s according to what I find. Guess the difference in higher regions might be even less, because of a different torque profile in turbocharged diesel engines.
0-60 is an awful way to measure acceleration; most of what it measures in modern cars is traction, since a Mk7 GTI will shred the front tires with a hard launch. So high five second and low six second times are both accurate, it just depends how good the launch was.
That's why you compare quarter mile times when looking at acceleration. And the GTI is still so much faster than the GTD; a full second and a half and 7mph trap. Meaning, in a drag race, the GTD wouldn't be close enough to read the GTI's license plate.
I've owned a (Jetta) TDI before, I even tried to make it fast. Even with a tune and full exhaust it was slower than a stock turbo petrol.
It's always Americans that talk about how awesome diesels are. I never see posts from Europeans (who are the ones that actually have to drive them) talking up diesels. They are always complaining about how terrible they are.
Diesels are great for trucks, but not cars.