My neighbors cut down trees around their house so that the solar panels could have unobstructed Sun.
One that wouldn't work. Two, those trees would have fallen on his house in ten to fifteen years because his house was east of the trees, and 'lions tail' tree pruning creates a giant lever arm and the roots will lose that battle in the first wind storm after a rain storm. That pattern had just played out ten years prior all over town. Big pruned Doug Firs falling onto people's houses.
What you want is to be able to be able to walk under a tree with your arms over your head and not hit branches. No more, no less.
My neighbor shields much of my house from the sun. We had issues when his branches started touching my roof, but we made sure it was trimmed in a way to still give us the shade it has all these years.