An additional complication is that generation and load aren't evenly distributed in a typical energy grid. This can create "traffic jams" that aren't reflected in a typical residential electric bill but something utilities and large business get to deal with.
In open energy markets like those in California and Texas there's things called "Locational Marginal Pricing" and "Congestion Revenue Rights" to deal with this.