If current pace of inflation persists, then you want to be in equities chasing cash flow in enterprises with pricing power. What you don’t want is to stay in cash.
And if inflation ebbs, you want the opposite.
Both outcomes are possible. So it's best to hold a well diversified portfolio and not try to time the market. Just rebalance once a year.