The problem comes in your second diagram. At the end of the diagram, Black can certainly play ...Na6 to defend the c7 square and thus save the rook. Even better though, instead of trading queens with Qxd1+, Black can play Nbd7 with a good position and a pawn.
I wouldn't say that Bg5 is unplayable, especially as a surprise weapon as it is fairly off-beat, but objectively it is not in the top class of options, and there are some off-beat lines with moves like f4 that provide better positions without going into the main lines
So I was playing around with my chess set one time, and I stumbled upon a new opening line in the Sicilian Dragon I had never seen before: 1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 g6 6. Bg5. White hopes to trade off their bishop for black's f6 knight, ripping black's e-pawn off its file and making the d-file full of pawn holes... a perfect home for white's knights. Please write about what you think of this opening/ why I'm wrong and 6. Bg5 is a terrible move.