Best hardware for HA and Solar Assistant

I think I need to run both Solar Assistant (to monitor and control my Growatt inverter and battery) and HA (to be in control of my whole energy system). People have recommended that I don’t try to run both on the same RPi (although my instinct tells me that this ought to be possible). I have a Pi 4 and a Pi 5. Which way round should I use them? Should HA be on the 4 or the 5?

Thank you - Rowan

I’m running both on separate Pi’s, primarily because they need to be in two different places, but I’d be interested in knowing if it’s possible to run both on one Pi. It’s maybe good that they aren’t on the same machine because I have used SA to see what happened when HA, and maybe the Pi itself, were offline.