MongoDB is part of the MERN stack which is most often used as a backend stack. So you are aiming for a larger percentage of the job market. While PostgreSQL is often used, it is not part of the standard stack. In terms of your learning path, MongoDB is easier because its data model is based on JSON documents with which you are already familiar. PostgreSQL will require you to learn about relational schemes, and schema design.