This is exactly what I would argue. PostgreSQL makes it straightforward to create extremely powerful extensions.
PostGIS is one such extension, and I would argue that if your use case involves geospatial data, then PostGIS alone is enough of a reason to use PostgreSQL!
https://www.bytebase.com/blog/postgres-vs-mysql/