Gen Z was more likely to say the pandemic made professional goals and keeping friendships more difficult.