Holding cash is the worst thing. It just loses value.
Buying fixed rate credit (fixed income) is really, really bad. It loses value as nominal interest rates (that includes inflation) rise.
If you anticipate inflation, slow your rate of debt paydown and make larger purchases sooner.
Equities with an implied shorter duration of future cash flows do better and those with an implied long duration do worse. Companies with the ability to pass on costs to customers also tend to do better. Functionally, this usually looks like "value" stocks outperforming "growth" stocks.