Corner semeai problem (9 Kyu)

I made a bunch of branches in the review but ended up deleting them after I found what I thought was the “most correct” line of play.

Obviously, I don’t possess knowledge or skill to make that kind of judgement, so I’d like to see who actually wins the capturing race in the end— and with what kind of moves. Thank you to all who help me out!

The problem starts at move 48!
Review link:

Preview images:

Posted a few things in the game. From w avoiding all trouble to b getting at best a ko to simple seki after S5.

thank you for many the variations, I had a feeling I wasn’t looking at all of white’s options