I don't know we we are hiding everything, making it harder to read things.
EdLee wrote:
If

atari directly, after

connects,
then later B can take at (a), or W can connect at (a):
$$W Variation A
$$ ---------------------
$$ . . . . 3 1 a 2 . . |
$$ . . . . O X O O X . |
$$ . . . . O X X X X . |
$$ . . . . . . . . . . |
- Click Here To Show Diagram Code
[go]$$W Variation A
$$ ---------------------
$$ . . . . 3 1 a 2 . . |
$$ . . . . O X O O X . |
$$ . . . . O X X X X . |
$$ . . . . . . . . . . |[/go]
However, if

throws in first, after

still connects as above,
the situation is different -- later, W can capture

at (b).
The points are different from variation A.
$$W Variation B
$$ ---------------------
$$ . . . . 3 1 2 b . . |
$$ . . . . O X O O X . |
$$ . . . . O X X X X . |
$$ . . . . . . . . . . |
- Click Here To Show Diagram Code
[go]$$W Variation B
$$ ---------------------
$$ . . . . 3 1 2 b . . |
$$ . . . . O X O O X . |
$$ . . . . O X X X X . |
$$ . . . . . . . . . . |[/go]
Ed is correct that the points are different in B. However, he seems to be suggesting B is worse and throw in was a mistake. It is not. Variation B is better for black in terms of yose: if white captures black gets to keep 3 points in the corner in sente (so net 2 for black), in A he doesn't. The calculation of the value of the ko moves round the corner for A after white connects is tricky, but it seems to be net 4/3 for black, i.e. 2/3 of a point worse than B.
So well done gostudent for having good basics of how to capture those two stones. However as has been pointed out and you noticed, white had a serious cut in the game shape so you can live by capturing lots more. Also throw-in is better because it has a better follow-up if ignored (for example if white fixes that cut) of capturing 1 stone on the top side instead of no followup like the connect-and-die. In fact all this minutae is kind of irrelevant when the previous moves didn't make sense, for example 10 should just cut as below and white collapses. White is trying to fill black's liberties but has too few liberties himself. (5 and 7 were pretty crazy too).
$$W
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . 3 2 5 7 . . |
$$ | . . . . . . . . . . . . . O X 6 4 8 . |
$$ | . . . X . . . . . , . . . O X X 1 9 . |
$$ | . . . . . . . . . . . . . X O O 0 . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ ---------------------------------------
- Click Here To Show Diagram Code
[go]$$W
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . 3 2 5 7 . . |
$$ | . . . . . . . . . . . . . O X 6 4 8 . |
$$ | . . . X . . . . . , . . . O X X 1 9 . |
$$ | . . . . . . . . . . . . . X O O 0 . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ ---------------------------------------[/go]
Also the premise of white connecting and black not capturing is rather unusual: if black won't capture why does white want to connect? For the throw in there is some value of saving 1 stone, for Ed's atari there is no value so it would only happen as a ko threat or if that connection did something useful on the top side.