Not really, because in your example the consumer has a choice whether or not to consume the product. Not that there is no externality - all activities have externalities - but the scales are completely different than with electricity production, and scale is what makes the case of fossil fuels different.
Electricity is considered a human right - it is required maintain the most basic modern standard of living - and the externalities of it's production with fossil fuels are borne by everyone in some way. Therefore it's a matter of massively broader consequence and greater cost than the example you used.
Electricity is considered a human right - it is required maintain the most basic modern standard of living - and the externalities of it's production with fossil fuels are borne by everyone in some way. Therefore it's a matter of massively broader consequence and greater cost than the example you used.