[fen "r2q1rk1/pp3ppp/n1pb2b1/2Pp4/3Pn3/P2B1N2/1PQ2PPP/RNB1R1K1 b - - 0 12"]
[Startply "20"]
- e4 e5 2. Nf3 Nf6 3. Nxe5 d6 4. Nf3 Nxe4 5. d4 d5 6. Bd3 Bd6 7. O-O O-O 8. c4 c6 9. Re1 Bf5 10. Qc2 Na6 11. a3 Bg6 12. c5
Here black's dark-square bishop is under attack. To my surprise, both Stockfish and the database prefer Bb8 to Bc7. To me, Bc7 is a more "natural" move and Bb8 builds a prison for its teammate (rook).
Why is Bb8 better than Bc7 in this position?