Google's Pixel smartphones did better than the iPhone in Japan and North America in Q2 2023.