As part of the plan, Amazon benchmarked similar services from Walmart, Instacart, DoorDash, and UberEats, internal document shows.