Inflation is a problem for sustainable investors — but these stocks will ride it out, Bernstein says