Both firms have increased investments in the city, waiving delivery fees for some orders and boosting services such as local product returns.