I know that some openings include fianchettoing the bishop. But sometimes, this isn't part of the opening, but I still need to decide whether to bring my bishop one rank forward (like Bg7) or to the other side of the board (like Bc4).
Someone told me that usually the fianchetto is useless if you push the center pawn closer to the fianchetto's bishop.
What should I look for to decide whether I should fianchetto or bring my bishop further up the board?
As an example, in the Sicilian as Black, I usually do
1. e4 c5 2. Nf3 d6. At this point, I've already moved two pawns, so I am not going to do