Hardly comparable. The only differences between the iPhone 13 mini and the iPhone 13 are the battery and screen size, all of these use the exact same A15 Bionic processor, same modem, same memory, same connectivity, same everything. The iPhone 13 Pro has a different screen technology and different camera hardware, with more sensors and LiDAR support. It also uses a different version of the A15 SoC that has an extra GPU core enabled. The Max is just a bigger version of the Pro, same way the 13 and 13 mini stack against each other - to that extent, it's another product entirely. Same if you compared the Galaxy S10e to the Galaxy S10+, they're different phones.
There is also the third generation iPhone SE - that simply reuses the 2017 iPhone 8 platform but updating it with the same A15 processor and qualcomm 5G modem used on the iPhone 13. Since between all of these the SoC is the same, the amount of memory is the same and the performance is the same, maintenance is extremely easy and streamlined.
It is not the case with LG's K10 or the Samsung Galaxy S flagships, which have two entirely different SoC families sources from two entirely different foundries, using entirely different modems, memory capacities and types, different GPUs, different everything... this kind of fragmentation simply does not occur in Apple's ecosystem due to vertical integration and the fact they exclusively use in-house silicon and their own operating system.
Android is terribly fragmented on its own, but with manufacturers creating entirely different devices on entirely different platforms and selling them as the same product creates a major cohesion problem. The LG K10 I mentioned earlier had an incredible amount of variants, with MTK and Qualcomm, as well as 1, 1.5 and 2 GB variants, single and dual SIM variants, with wildly different performance figures and an US exclusive version that received Nougat while everyone else languishes to this day on Marshmallow - this kind of brutal fragmentation is expensive to upkeep, especially to an embattled company like LG. No wonder their phone division went under. Another embattled Android manufacturer was Sony, which made great devices, but couldn't sell them enough due to high costs and their extremely poor track record in maintaining their devices' software. End of the day they folded their business from practically the entire world and only sell in the US and select EU markets nowadays.
Meanwhile if you bought an iPhone 6s in 2015, this is the first year you won't receive a major iOS update. Seven years later. Good luck getting Samsung to do anything to support an equally pricy S6 Edge