Ground is the clear answer — Ground-type moves hit Electric Pokémon for double damage and Electric attacks do nothing against Ground in return. That immunity is why Ground is the standard counter.
Fighting is not super effective against Electric in the main series games, so do not rely on it.