For phones, anything that gets updates directly from Google (Pixel and Android One) will update quickly and will have community support for LineageOS for many years after official support ends. Unfortunately, Google makes absolutely terrible hardware decisions, but nothing comes close in terms of software value, which is far more important in my experience.