Meta edged past Tesla in market value on Wednesday—not because Meta's stock rose, but because Tesla's fell harder—setting up Meta’s earnings report later this month as a test of whether the tech giant’s big spending on artificial intelligence is paying off.