DL should be willing to give you ORC - Original routing credit. You'll have to contact DL, and will likely have to explain multiple times, but should get it. Best though if they can keep you on the flight, with a MEX-SFO flight on UA if you miss the AM flight.