I feel like WordPress is too much the obvious choice, which can mean security risks, dependency risks, even hurting performance. What do you think about this?
There are many other choices depending on what you want. If you just want a blog with a comment section, you could use hugo + disqus and host it on an s3 bucket. It will be fast and will cost very little to host.
You could go with something like Laravel if you want more control over the dynamic website. I say Laravel because if you've been developing for Wordpress, PHP is the most familiar language.
There's always Joomla which is more flexible and will give you some diversity while being familiar (also PHP).
If you're OK with Python, there's always the trusted old Plone CMS.
There are many other choices. Depends on what kind of websites you want to build and what you're looking for.