Both moves dont work. Leela is a bot that is partly based on randomness. It knows, that you are lost once those stones get taken off, so it wants to try "tricks", hoping your opponent messes up. They are not really tricks though, since its quite hard to mess up there. I would not play these moves.
Nevertheless, you are giving a perfect example what kind of mess up they would be hoping for in your variation for '2' at 87: after 100 suddenly white 7 stones are captured

. Still you continue the variation as if they werent (of course black should take them 117 at the latest). Instead, 98 at e6 would be a ladder, so white does not at all have to let this happen.
Also black shouldnt push in at g3 before this achieves something, since it loses a precious liberty!