Normally, you should take torwards the center, so that you get move center pawns. By taking with b pawn, you now basically moved a flank pawn (the b pawn) into a more centralized location (c file) meaning you will have more pawns to fight for the center with. On top of that, you now have a partially open b-file to put a rook, which will be especially powerful if the white dark square bishop leaves the defense of the b2 pawn.
Taking with the d-pawn is also valid, as you get your queen to look at that partially open d-file, along with activating the black dark square bishop, but stockfish doesn't like that move as much, as it moves a central pawn (d pawn) into a less central location (c - file)
thank you in advance!