Apple avoids the recent gloomy results of rivals Amazon, Alphabet, and Meta. But it still warns of a slow holiday ahead