The stocks to buy to beat inflation, including tech: Analyst