A few big differences between a gasoline engine and an electric powertrain are that the gasoline engine gets poor fuel economy, and that the electric powertrain has limited range. From the standpoint of the ECU, I believe power is typically passed through a battery either way, so it doesn’t really matter which source is providing the electricity.