I have heard "wind turbines are ugly", which I extremely disagree with (they're huge impressive things), but at least it's sort of justifiable because you might see them. Who the hell is staring at railway tracks?
And who could possibly care about aesthetics when we're talking about something so important? Clean energy is not about which color you paint the bikeshed, it's not about your personal preferences.
More recently the opposition to HS2 in the UK has produced many arguments about asthetics, mainly due to route location.
TBH I'd prefer to see smartrail systems rather than a rehash of an existing transportation system. Something like: http://openprtspecs.blogspot.com/2016/
A railway line disappears into the ground somewhat, and to some people is actually attractive, even with emissions from a combustion engine.
https://en.wikipedia.org/wiki/Glenfinnan_Viaduct
Electric gantries are seen to many people are far more intrusive to the landscape, and even destructive to landmarks, since they stick up into the air.
It is also very bad for the environment because it divides the territory in two and animals and humans could not cross easily like they did in the past for millions of years. You can not cross or it is extremely inconvenient crossing whole cities because of trains.
On the other hand, trains make transportation way cheaper and territories to prosper.
I also find electrical posts ugly and dangerous stuff.