I think you have that exactly reversed. Its advantages are in variable speed situations because the electric motor has a constant powerband whereas a diesel peaks at certian RPMs and is very bad at low RPMs.
I am not familiar with freighters but I do know that pretty much every locomotive you see rolling down the tracks is a dieselelectric. My understanding is that there is significant efficiency to be had by not having a transmission, and a wide constant power band.
sk