Any phone you get well be non updatable in 3 years. Even the cheapest phone works good these days. Get the cheapest reasonable phone and know it won't last. Unless you do something different and get a pine phone, or fair phone.
Discussion
Custom ROM – e.g. Lineage OS – can help, when available.