Amazon has a strong muscle in retail; Google’s software strengths bolster its opportunity in hardware.