Goldman lists stocks for if the worst is over, and stocks for if it's not

A trader works on the floor of the New York Stock Exchange (NYSE) after the opening bell of the trading session in New York, U.S., March 13, 2020.
Lucas Jackson | Reuters

(This story is for CNBC Pro subscribers only.)

The stock market rebounded sharply this week amid rising optimism that the coronavirus pandemic is improving. Still, many investors are skeptical the worst of the outbreak is behind us and the economic recovery would be an immediate upswing. 

Goldman Sachs is advising clients to focus on two buckets of stocks in the short term: one group poised to outperform even if the widespread shutdowns are extended and one group slated to recover quickly once the virus is contained.