Yeah, if you are also going to do a new roof, metal roofs work really well with common panels and last 50 years or more. You can just clamp the panels to the seams, making the solar install very simple.
Solar shingles are an insane 10x premium for aesthetics, at best. They are just an inferior, way more expensive, locked in product at worst.
