They were constantly mentioning the cost of living, and even proposed extreme measures (such as price controls) to try to fix the issue. Democrats were not avoiding the issue at all. Same with the border, where they worked with Republicans to pass a massive border bill that Trump then killed.
The border bill was done only after three years of doing nothing against massively increasing crossings.
Price controls don't work. That is a dumb solution.