To slightly rephrase the OP's question:
In what use cases does mongo kick postgres's ass?
To the two points you mentioned:- semi-structured input can be saved as hstore type or as json type;
- and for flexible jobs, you can use pretty much any popular language - PL/R, PL/Python, even PL/C if performance is really critical.