The first house our offer was accepted on had a large tree (the biggest tree I ever saw IRL besides some state parks) and had a credit to get it removed. 3 days after our offer was accepted a big storm came through and a branch fell, destroying the roof on the back half. We went through with the inspection because they told us insurance was replacing it, but we walked into a house with water going from the roof to the basement. There was even water pooling in the breaker box. We mentioned everything we found to them and they just said "well our neighbor is the contractor and he can do the roof and some of the walls. If you guys want to talk to insurance or find another contractor that's fine". We backed out after that.
Edit: There were multiple broken struts in the roof and they "didn't know about" and said the neighbor could fix them. We looked up the neighbor and he's just some guy with an LLC doing handy work. Nothing against that but when it comes to structural work, I would want an artitect or engineer to take a look, not some handyman who can "fix it" while missing a lot of the damage our inspector found.