As earnings loom, investors weigh recession resilience