On the one hand, a ton of people have giant diesel trucks for no reason other than anatomy comparisons, on the other: diesels are more fuel efficient, and have greater torque than petrol. If you compare to EVs you have to consider the working scenario for a truck that does benefit from diesel: You have a fixed amount of time under load, after which you have significant charging downtime, in the order of hours if its in typical rural areas which don't have superchargers everywhere.