In a walkable neighborhood, the result may be different. For instance, NYC has a lot of local shops, enough that NY state as a whole has the lowest per-capita rate of fast food chains in the US. And I see multiple local coffee shops here for every 1 Starbucks (though Starbucks is still quite common; far more likely than a McDonald's). I think it may be related to walkability since chains are more common in NYC's more car-oriented neighborhoods.
Outside that, I still don't think you're most likely to get a McDonald's in the middle of a residential neighborhood: it'd most likely be a corner store, since that's what walkable areas are most full of. At least in NYC, it's uncommon to have fast food outside of a busy shopping street. The shops embedded in the middle of residential neighborhoods are largely corner stores and delis, and to a lesser extent cafes / bakeries and barber shops / hair salons.
Outside that, I still don't think you're most likely to get a McDonald's in the middle of a residential neighborhood: it'd most likely be a corner store, since that's what walkable areas are most full of. At least in NYC, it's uncommon to have fast food outside of a busy shopping street. The shops embedded in the middle of residential neighborhoods are largely corner stores and delis, and to a lesser extent cafes / bakeries and barber shops / hair salons.