The solution is sente seki for Black.
Black can save all his stones.
Both and are tesuji moves that allow all respective stones to be saved. If is played anywhere else, then White can catch some Black stones in a connect-and-die.