While it is true that democrats carried urban centers it is worth noting that their support appears to have eroded somewhat in these areas. Republicans picked up a statistically relevant number of votes there.
If I were a betting man I'd wager that switches like that are purely due to inflation. Shit's too expensive and people think that changing the party they vote into the seat of the presidency is going to change that.