This sequence kills easily with a rectangular six in the corner... but the order of moves must be correct. Any deviation by White from this sequence is wrong.
has the right idea but is played prematurely... and is a good move, living in a bent four.
If hanes, then occupies the vital point and lives.
White can only get a ko.