Choosing the best move in the given position I was just guessing the best move in the position.(white to move).

I thought Rc1 would be the best move forcing white to exchange the white's dark square bishop and preserving the white's light squared bishop to neutralize the black's light squared bishop . But the engine gives Bxc2 which doesn't makes as sense as the former.I want to know the idea behind engine's move.

[FEN "r3kb1r/pp1q1pp1/2p1p3/3nPb2/3P1N1p/PBN1BQ1P/1Pn2PP1/R2R2K1 w - - 1 1"]
After 1. Rac1, Black has the intermediate move 1...Nxc3, attacking the rook on d1, which forces White to play 2. bxc3, and then the pawn on a3 is hanging. So Black would likely go 2...Nxe3 followed by 3...Bxa3.

[FEN "r3kb1r/pp1q1pp1/2p1p3/3nPb2/3P1N1p/PBN1BQ1P/1Pn2PP1/R2R2K1 w - - 1 1"]

1. Rac1 Nxc3 2. bxc3 Nxe3 3. null Bxa3