Getting into the pharmacy business was easy for Amazon.com: It paid $753 million to buy the mail-order startup PillPack. The hard part has been prying patients away from their local drugstore. Since being acquired by the internet giant, PillPack has run into stiff opposition, from chains like CVS with thousands of stores to family-owned operations with a single shop.