Despite past resilience, high valuations and new challenges suggest Walmart and McDonald's may falter in future market downturns.