Afaik, most mice with mechanical switches that you can get all have switches that are prone to failing prematurely these days. The only exception seems to be the new optical switches but usually those are very expensive and are only in some mice.
So for me, the way I go about it is that I pick the mice that I like first, then check for warranty. For example the last mouse I picked was the G502 Lightspeed which frequently goes on sale and comes with a 2 year warranty from Logitech who has great customer service. That costed around $145 when I bought it last year. If I were to get the Razer equivalent that has Optical switches, that would cost me around $300 or so.
So if you want absolute durability, I'd look for Optical switches. I wouldn't pay too much attention as far as the lifespan of the mouse because it's mainly marketing. You can check the reviews and forums and such and a lot of them with mechanical switches are failing as they start exhibiting the double click issue. With that being said, it doesn't happen with everyone and some people have been using mice with mechanical switches without issues for years.
PC Specs: CPU: 7800X3D || GPU: Strix 4090 || RAM: 32GB DDR5 6000 || Main SSD: WD 2TB SN850