I think the ideal grid would switch from DC to AC either at a substation at central location for a community.
Why might someone do this?
One of the hardest problems to work through is a grid cold start. When a grid goes completely down it takes a monumental effort to bring it back up again. There's a delicate balance that has to be struck with load and other generators coming online. It's hard to do. The AC waveform is a finicky thing that gets pulled and mutilated by every motor or vacuum cleaner that starts running.
With a bunch of AC microgrids joined by a DC major grid, you can completely sidestep that problem. It suddenly becomes just a lot easier to ramp up power production because the deformations to the waveform happen in small local regions, not everywhere in the grid. And further, the other plants just have to watch the DC voltage, they don't need a whole bunch of equipment around syncing with the AC waveform of the grid as a whole.