Which requires less ram usage MongoDB or Elasticsearch?

Hello all,

I am currently building an application where I can use both Elasticsearch or MongoDB.

I have read that Elasticsearch usually requires significantly more amount of RAM compared to MongoDB. If it’s true, then the pricing structure of MongoDB is less compared to Elasticsearch?

Is this information accurate? (or) Elasticsearch is also a NoSQL DB, so will that mean both are similar?