As a general rule in basic strategy for blackjack, it is recommended to hit on a soft 12 when the dealer has a 2 as their upcard. This is because the dealer's upcard of 2 is a weak card and has a high likelihood of resulting in a lower total hand than the player's soft 12.
If the player were to stand on a soft 12 against a dealer's upcard of 2, the player would have a high chance of being beaten by the dealer's hand, which would likely be higher than the player's soft 12. Thus, it is generally more advantageous to hit and try to improve the hand.
However, it's worth noting that basic strategy is based on probabilities and doesn't guarantee a win on every hand. So, while hitting on a soft 12 against a dealer's up-card of 2 is the recommended move in basic strategy, the outcome of the hand is ultimately determined by chance.
Blackjack