I spent $1000 on my Samsung (S6? I can't even remember anymore) and it's battery shit the bed after like 12 months and the charging port no longer worked unless the cord was exactly in a specific angle and pressure on order to recharge it. It was a pain in the ass and cheaper to buy a new phone than to fix it.
Bought a OnePlus 5 after that which lasted 4 years, them a OnePlus 9 which lasted another 4 years, and currently on year 2 of my OnePlus 13 with no issues.
Samsung could have had another 2-3 phones from me if they had decent quality but nah they prefer to design to fail.