Energy density of diesel: 45.4 megajoules / liter
Energy density of a lithium battery: 1.30 megajoules / liter
"Same weight/energy ratio" (using volume as a proxy for weight since the lithium battery does not have a energy density by weight listed) is 40x.
"Charge time" of a diesel engine is probably also 40x (to pick a number) faster than battery charging (e.g. several minutes vs. several hours).
Multiply the two together and you have three orders of magnitude between the two "ifs".