I forgot to add that logseq is open source, the file encryption feature is built-in (you can opt-in or opt-out) and all the documents are saved locally in md files.
Obsidian don't have encryption built-in, they do have the encryption via community plugin. But it is only partial (I believe per note), not the entire vault.