I like Samsung hardware a LOT, they are usually pretty cutting edge. I'm decidedly less a fan of their software. They run a custom launcher which is very meh.
Contrasted with Google, their hardware leaves a lot to be desired especially at the flagship price. The software (stock Android) is solid though. You are also guaranteed updates, I believe now the Pixel 8 is for 7 years. I don't know of any other Android devices that will get updates for that long.
Google support is also pretty lackluster. I haven't had to deal with Samsung so cannot comment there. I hear it's better.
Really, you can't go wrong with either one.