Two cloud titans are pouring cash into AI infrastructure, making them good investments for investors looking to capitalize on the AI boom. But which stock is a better buy?