Moves 12 to 24 in demo https://online-go.com/demo/view/564614 show the tactic of “creeping along the edge”, which as shown in moves 15-20 is difficult to block.
Do we have to avoid the hole at J4 at all costs, or is there a good way for black to block move 12?
Have you tried h6 instead of h5?
If you have not already blocked at j4, then you are accepting giving up a bit of the edge. I think something like h6 gives away the minimum.
Sorry, my mistake: Ctrl+C copies, Ctrl+V pastes.
They are generic shortcuts for copy and paste.
On Discourse (this forum) works fine.
Same for right-click copy and paste.
Easier than save file + upload.
To answer the actual question here though:
Black playing at j4 is a big endgame move so typically important to play. But “at all costs”? Never! If black has something that will gain more than the ~7 points letting white play j4 will cost then do that.
It’s just that in many endgame scenarios nothing else will be worth losing 7 points in gote.