Only German and Swiss sources, sorry for that. But should not differ much to other countries.
- https://www.energie-gedanken.ch/2019/ein-elektroauto-verbraucht-gleich-viel-energie-wie-die-eisenbahn/
- https://www.elektroauto-news.net/news/wie-umweltfreundlich-ist-die-bahn-eigentlich
- https://www.airliners.de/energieverbrauch-bahn-flugzeug-apropos/36592
- https://m.faz.net/aktuell/wissen/klima/klimabilanz-der-bahn-noch-eine-unbequeme-wahrheit-1488587.html
But you can use regenerative energy surces
Same with electric cars.
I dont think you can kill as many people with bikes than you can with a car.
If bikes would drive the same annual passenger-kilometers, they would.