Trains are better for the long haul. And even short haul, a delivery vehicle will usually travel a lot less distance than a bunch of family cars taking one person shopping then home again.
And did you see where a consortium of ocean freight companies are talking about a carbon usage tax? Things are happening. Good(-ish) things.