GOTG wasn't safe in any way, shape, or form. They used a comic property that even most hardcore comic fans only had a passing familiarity with, a director who was known for doing weird niche films, and cast a leading man who was big on a cult comedy TV series that was constantly in danger of being canceled. That's a risk no matter how you look at it.
Same holds for Iron Man as well. Those are just facts. They were risky moves. You need to realize there is a difference between telling "edgy" or "dark" stories and "risk" in a moviemaking sense. Everything I listed for all those films were huge risks for a studio to make. And they certainly weren't as safe as possible. The Transformers sequels were safe action films that played as safe as possible. GOTG was not.
And TWS was definetly a Spy thriller, you could have easily changed Cap to Bond and it would have been a damn good Spy flick. I didn't say it was a serious government drama like Bridge of Spies or Tinker Tailor Soldier Spy, I said it was a spy action flick, and it was that 100%. And for a comic film, it had solid commentary on current political issues, namely the NSA. Was it super in-depth commentary? No, but it was like TDK throwing in the allegory to Bush patriot act post 9/11 with the Bat-sonar. A small thing, but one that was there and executed well.
Point being, all the examples were still risks to take. There's no debating that. They may have not been the risks you wanted, but they were still risks.