No they don't. Those issues are very rare and indicative of faulty batteries. When you sell hundred million devices a few hundred can be defective. Not a big deal. Generally, Samsung phones (or any other manufacturer tbf) do not start shutting down randomly after 2 years. They also do not slow down the CPU. So they must be doing something which Apple hasn't discovered yet or (more likely) hasn't implemented because this way they can force users to buy $1000 every year.