I have Nexus 5, Xiaomi A1, Redmi Note 7, Samsung S7, and a Kindle Fire HDX, all running either LineageOS (Kindle) or PostmarketOS (the rest). PmOS ones run some not very demanding containers (scrapers) on k3s.
They're not useful as phones, because the battery, screen, radio, etc. are damaged; but they may still have a working CPU inside, which would be sufficient for this project.
I have a drawer full of old phones with broken screens, obsolete chipsets, etc. I usually buy phones rather than get them through a contact plan with trade-ins though.