Looks like trains will beat out bicycles in some cases, but they lose out to e-bikes and e-scooters. Check the table in this helpful article: https://en.wikipedia.org/wiki/Energy_efficiency_in_transport
If heavier were better, we’d see all Tour de France riders use cast iron wheels and frames ;)