Funny that it was the other way around 20 years ago. Everybody was using MySQL, but there were many blog posts and such about the looseness of MySQL with the SQL standard and other issues. And that people should use Postgres unless they need the replication features of MySQL. AFAIU, replication is still the main (good) reason to use MySQL, though there are some semi-proprietary(?) solutions for Postgres.
Yea, Postgres really came up when Node and Mongo did. During the PHP/RoR era MySQL was a very clear winner.
I still think MySQL is a better choice for most web apps due to performance, but more general use cases I can understand the debate.