It's not just about the
It's not just about the energy used to move the truck. The part you're missing is payload. The Tesla weighs substantially more than a diesel truck. Since trucks have a maximum weight an electric loses payload capacity. This means a loss in revenue per trip.