Please don't buy a 5a, it'll be end of life extremely soon and will start getting progressively more insecure.
With time, on top of mounting insecurity, it will also stop receiving new GrapheneOS features (as is the case for 4th gen Pixels at the moment), and core functionality might also eventually break, such as sandboxed Google Play, due to lack of the compatibility layer updates.
Please see https://grapheneos.org/faq#recommended-devices. A used 6a or 7a might be reasonably affordable for you if budget is a concern, and those still have years of support left to go.