They wouldn't gain any strategic advantage over any of the competitors in their industry by owning a vehicle manufacturer.
The only value of EV delivery trucks for Amazon is helping their brand image and reducing their fuel and maintenance expenses. They can get that with any electric delivery truck manufacturer.
The only thing that owning Rivian would do is put pressure on their profits.