Merge means make one table from two tables by merging its values.
UPSERT is a database term.
UPSERT means to insert or update, suppose you run a query of the UPSERT, it checks with the primary field that the record exists or not. if not exists it will insert a new record and if already exists it will update the table fields' value.