Both Walmart and Amazon made aggressive moves in June that show where their priorities are headed.