U.S. stock benchmarks struggled for direction Wednesday afternoon, but with the Nasdaq Composite within striking distance of a 16th record close in 2021, as investors focus on inflation and the Federal Reserve’s promise to go slow in scaling back its support.