I would only purchase panels if I had the room to put them in my yard and not my roof. They add a lot of weight, act as a wind sail and if you need a roof replaced, you’ll have to pay to have them removed & reinstalled.
Panels on roof keep attic cooler — aka energy savings there too