[Question] How does electricity work literally?

What I know about it from high school and general articles on the net doesn’t satisfy. Maybe because I have critical holes in my knowledge.

From what I think I know: we’re having AC running in the lines. AC means if we zoom down, we’ll see that an electron is zipping along this direction, and after 150 sec (or 1/​100?) that very electron will zip back in the opposite direction, ideally back to the specific point we’re looking at, because phases are supposed to be equal.

So how does resistance come into the picture at atomic scale? Conductors heat up after a while, so maybe that’s because some of the electrons’ kinetic energy gets transferred into the wire’s temperature? Does this mean the electron slows down? But then does that mean electricity will somehow, sometime propagate slower than light?

Most if not all of our devices actually use DC, using relay(s) to get it from AC. From the only type of relay I was explained, the DC current the device receives seems to be on & off. This moment the electrons are moving forward, the relay allows them to flow into the device. 1/​50s later electrons moves “backward” and it cuts the circuit so they can’t flow back and the device doesn’t have to lose electrons that way (but it doesn’t gain anything either, thus my ‘on & off’ understanding). So my question is: is it detrimental to the device? Is it responsible for the flickering of lights & other stuffs? If so, is the number of 50Hz chosen for the main purpose of making that flickering imperceptible to us?

This lead to another big pondering. Why the fuck don’t they just use DC from the source? There are some methods to transfer DC along big distances, they seem to be tried and probably true. Or the reason is simply because of inertia? That people are so used to AC and the systems for AC are all over the place, so switching is not cost-effective? Is there research on this very subject yet?

Last but not least, I wonder how exactly devices “consume” electricity. Like, is it that many electrons enter the device but fewer exit? If not so, how do counters count our consumption?