Efficiency of Carnot cycle in gasoline internal combustion engines: 20%.
https://news.mit.edu/2010/explained-carnot-0519
Efficiency of Diesel cycle in the very best diesel truck and bus engines: 41% maximum.
https://www.sciencedirect.com/science/article/abs/pii/S0306261919321300#:~:text=The%20results%20showed%20that%20the,factor%20of%20637%20g%2FkWh.
Energy required to extract, process, refine and distribute gasoline and diesel are not included in those efficiency numbers.
I take it you are unfamiliar with entropy, heat, energy and exergy? Sounds like you have some learning to do.