Both are indexing databases, but PubMed is designed for the medical journals while Google Scholar is interdisciplinary. Besides, PubMed is a data base, and GS is a search engine. The search functions of both are different. Another thing is that PubMed index scientific papers, while GS index every publication.