Insert or update means first we insert a record, but if a record is matching with the primary key then the record is updated.
Update or insert means first we update the record with same primary and if the record doesn’t exists then we insert the record.