They do. But it's difficult to call anything they make "smooth." Google does some decent backend stuff but their frontend experience is not.
The YouTube Music app blocks you from navigating to a different song at the same time as playing a track if it decides that the track is primarily aimed at under 18s (such as the theme from a retro cartoon).
It's UI might charitably be described as a total catastrophe.
https://www.androidpolice.com/2020/01/30/why-youtube-videos-...
Also, I never encountered the problem you complain about.
Subjective, but I use both Android and iOS daily. Interesting byproduct of Android being the favorite of those obsessed with customization is that the stock apps are almost universally bad because everyone just replaces them with different niche alternatives.