Food-delivery company DoorDash Inc. on Wednesday reported a worse-than-expected first-quarter loss amid signs of a slight slowdown in growth for its large U.S. restaurant business, and it offered a second-quarter forecast for a key demand metric that was just shy of estimates.