Where does electricity go?

To make an advanced process simple, you could say that electricity always takes the closest route. If you have a photovoltaic system on your roof, you know that it will first go to your business or house, but as soon as the electricity goes to the public grid, it will always take the closest route. This way we know that the electricity produced locally will also be used locally.