Both are indexing agencies and are of good quality. Journals in SCOPUS are more in numbers compared to ESCI. ESCI is an emerging indexing and now have many good quality journals. It all depends which indexing is more preferable in the country you are doing research.
ESCI aka. Emerging Sources Citation Index is a "lower-ranked" index. Journals listed here are being considered for the more prestigious indices SCIE, SSCI, and AHCI (note this doesn't include SCI, which is the most prestigious index). In other words, ESCI is a "feeder" index to the SCIE/SSCI/AHCI, which in turn feed into SCI. If you search the ESCI, you'll find that the most prestigious journals such as Physical Review Letters aren't actually indexed here.
Scopus is fundamentally different and is built more on inclusiveness than quality. If you look at the inclusion criteria, Scopus mostly demands regular publication, peer review, diversity in authors & editors, and online availability. It does require that the journal's articles also be cited by other journals in Scopus, but not more than that. Scopus has many, many more journals than ESCI.
So which is good? Hard to say, and depends on what you mean by 'good'. Good journals will be in Scopus, but being in Scopus doesn't mean a journal is good. Being in ESCI is a different matter, since the really good journals won't be in it, but the really bad ones won't be in it either. It's your judgment call to make.
What you just mentioned are all databases where good and bad journals can be found. Do not be decieved by databases, but rather fucus on journals that are top in your field. For example, researchers from the field of information systems have journals like MISQ, ISR, CACM, ISJ, MISR, etc as top journals in that area. Another thing to know is that good journals don't demand for publication fees in any form, it is free. So I think we go for journals not databases. Because databases are secondary. Regards.