For evaluating joseki results, you always need to take into account the number of moves playes by each side. In your latter diagram, white played 9 moves and black played 11 moves.
So yes, locally black seals white in while making a nice wall on the outside, but in return white gets a safe and fairly large corner and 2 extra opening moves elsewhere (like corner approaches or corner enclosures).
Taking that into account, I think black’s gote continuation would be somewhat slow to play immediately (in the early opening). So in practice, the continuation after A-1-3-1-2-1 would usually be that both players play elsewhere for a number of moves, before returning to this corner.
Note also that if black did this too early, white need not answer 19 at 20 but can tenuki AGAIN to a big opening point, though black then capturing at h1 in sente is pretty nice (but perhaps not as nice as that extra tenuki white got).
I don’t know how AI feel about this, but I feel that black blocked on the wrong side with 1.
AFAIK, black only does that when he already has the left side star point (and maybe one more in the upper left corner), because black loses sente blocking from the direction of 1, so he may not be able to extend from that wall. At least that would be the classical thinking.