macOS over Ubuntu (don't get me started on Windows). I use macOS on my MacBook Air and it's just so well thought out. Ubuntu is decent but I wouldn't want to use it for my daily work.
I love Obsidian and use it to manage my Markdown files and I'm in awe. Checked out Logseq as well but it didn't work for me.
VS Code. As much as I hate Microsoft, this is great. I'll likely look for a community-supported version without the creepy telemetry shit though.
Although macOS has some great features I sorely miss in Linux (working tag system for example), I could not disagree more. For my workflow, use cases etc. Linux wins hands down.
OTOH IMHO that is the key: Use what works for your use cases/workflow, be it macOS, Windows, Ubuntu or whatever.
vscode is open source and released under a MIT license. Then the binaries they build have telemetry and such and is released under another license that is less FOSS friendly.
VS Codium is based on that vscode source code from Microsoft, and i pretty much the same thing, but without the telemetry and such.