Amazon said on Thursday it would buy small online pharmacy PillPack, a move that will put the world’s biggest online retailer in direct competition with drugstore chains, drug distributors, and pharmacy benefit managers. The deal’s potential to disrupt…