You can dig into the numbers on this helpful article: https://en.wikipedia.org/wiki/Energy_efficiency_in_transport
The lifecycle emissions of an EV depend on how the electricity was generated, and the total emissions of cycling depends on the diet of the cyclist - even though the energy per distance is the same regardless.