I'd bought an iPad pro just a few months before, and suddenly I couldn't use apps I require (no updates available).
Instead of downgrading to the new-and-busted-iOS version I just sold the friggin iPad (not "fit for purpose") and went back to my ancient iPad (original model). Doesn't get used for browsing the net obviously, but at least that model still works.
My car costs multiple tens of thousands of euro and yet it's still only 24 months (people actually tried this one at a court, failed).
If you bought your Samsung phone in the EU, you will get the 24 month warranty automatically from all EU-native suppliers. Of course if you ship it from somewhere else like the US or Asia, it's very different. If it's from EU, send it in as non-functional.
There are many things that are counter-productive in the EU, this one is probably one of the smallest ones.
Here's a lawyer's take on it [1]. Although I'm not sure if its EU specific or NL specific. According to [2] [3] [4] there are some differences between NL and EU on this account. They specifically mention the car example in those sources, btw.
[1] https://blog.iusmentis.com/2018/09/27/honderden-klachten-ove...
[2] http://www.conformiteit.nl/conformiteit-conformiteitbeginsel...
The precedent is neither scary nor controversial. The European law says a device should keep functioning for a reasonable amount of time. A car completely breaking apart after 25 months is not normal. A smartphone being insecure is not normal either. Especially not considering how much personal data these contain.