Efficiency is important, but I'd bet the diesel electric design was mostly about simplification of the drivetrain and performance. An electric motor develops maximum torque at zero RPM and is very easy to modulate the amount of torque applied. A reciprocating engine has a minimum speed, so getting an extremely heavy train moving from a dead stop is tricky. Remember how old steam locomotives tend to spin the wheels regularly as they get up to speed.