It appears that as of Safari 15.2 (or 15.3) and/or macOS 12.2.1, this issue (along with several other Storage issues) is resolved. Here is an example demonstrating that "local" and "sync" have different contents
(I've omitted the code that got it that way because it should be obvious).
Topic:
Safari & Web
SubTopic:
General
Tags: