In negotiations, Amazon spent a lot of time analyzing Whole Foods’ distribution technology, pointing to a possible way in which the company sees the most immediate opportunities to reduce costs, said a person familiar with the matter who asked not to be identified because the issue was private. Amazon, through a spokesman, declined to comment, as did Whole Foods.