EBay reported second-quarter sales and profit that beat expectations, boosting confidence that its purchase of Depop strengthens its position against Vinted.