The higher cost of essential expenses like rent, child care and food have emerged as a defining issue of the 2024 election, but the economic consequences of inflation and other factors driving up costs have played out differently in different places.