Antitrust enforcement focuses on the "primary market" of the entities. Google's primary market is advertising and Amazon's primary market is retail products. The DOJ does consider the potential anti-competitive impact on tertiary markets the two entities operate in but it wouldn't be a barrier to the hypothetical merger because those markets have plenty of other competitors.