DoorDash reported quarterly earnings on Wednesday, with profit beating expectations but sales missing the mark.