When it comes to AI on phones, Samsung and Apple say two heads are better than one