Maran, zt"l, showed a favorable face to the reasoning that electricity is not like fire in every way. As the Shulchan Aruch wrote, the mitzvah of a Shabbat lamp is that a lamp be burning in the house, so one fulfills with an electric lamp. For Chanukah, where the lighting makes the mitzvah, an electric lamp may not fulfill.