I've not heard the play5, but I have a decent collection of ones, play1s and a beam.
I'm not a "shake the walls with my music" kinda person, but a friend is, and he loves his play:1s
the ones and play1s have the same speaker setup, the newer "one" just adds a mic and airplay 2
They ones have really good bass, not quite as much as the HomePod, but close
They sound really amazing, and I'm sure going up in size only makes them sound better.
I've never heard the 5s in person.
they both have airplay 2 so no difference there.
For me, the sonos system is much better,
-you're not limited to Apple Music for local playback on the speaker.
-Control is easier, just launch the sonos app (Mac, iOS, windows, or android) (You can also use Alexa/google if you get a compatible sonos speaker, or you can also control any sonos from stand alone Alexa/google devices)
(for HomePod, you have to use iOS or siri to choose music, and it's a little fiddly to choose playback on phone and then airplay to HomePod, or playing directly on hompod)
-the 5 has a line in jack, so if you ever expand your sonos system, you can send that audio to any of the other speakers.
HomePod
-Siri (not sure if that's a pro or con, she can be annoyingly not helpful)
- homekit hub (if you have homekit devices, it will allow access when you're away from home, nothing changes when you're in your house, and an appleTV, or iPad can also do the same thing)
I've seen people having issues with stereo home pods, more so with airplay, but haven't really looked too closely, since I'm not going to be getting another. so something you should research.
If this is something you're buying, you can get 3 Play:1s for the same price (or 2 play:1 and a One)
a couple things to note.
Stereo pairs must be same type (play1 & play1 or One & One)
if you have a One you can airplay to that speaker and connect all your other sonos speakers to that one, even if they don't support airplay directly.