Shares of Amazon.com are down 2.5% Wednesday, on a day when the broad market is up nearly 1.1%.

So why the weakness? Perhaps it’s because President-Elect Donald Trump and Amazon CEO Jeff Bezos haven’t exactly gotten along in the past. Back in May, the two business executives exchanged some harsh words, with Trump suggesting that Amazon was an illegal monopoly.

Trump,...