The German luxury carmaker said its latest compact sedan solved problems that had kept people from buying electric vehicles.