Amazon.com Inc. is planning to buy One Medical, a primary health care provider, in a takeover that would expand the e-commerce giant’s presence in the health care market. Both companies have entered a “definitive merger agreement” indicating that Amazon will acquire One Medical—comprising 1Life Healthcare Inc., the administrative arm of the company, and the affiliated health…