Sorry for the lack of feedback on this issue. It’s quite strange that Docker wouldn’t free the disk space in this case. I can’t see why that would be a different code path.
The docker snap is maintained by Docker Inc. itself, so I’d start by reporting a bug there. Please link the bug here so we can keep an eye on the conversation and the fix.