Matching objects using drag and drop

I am currently making a game where you have to match a term to a specific location on a field. The player will drag and drop, via mouse click, a term to the correct location on the field. I was thinking of doing a tag match between the object that will be the term and the plane that will be the location. Something like,

if gameObject.tag == gameObject.tag

do something (like score +1 or something)

However, I can’t seem to figure out exactly how to code this. I’m new to Unity but understand c#. All in all, my question is how would I go about matching the tags of two objects?

Edit: This is the current code I have for drag/drop. It’s just something I came across so nothing really set in stone.

void OnMouseDrag () {
		point = Camera.main.ScreenToWorldPoint(Input.mousePosition);
		point.y = transform.position.y;
		transform.position = point

if (Input.GetMouseButtonDown(1)){

						Ray ray = nGUICam.ScreenPointToRay (Input.mousePosition);
								RaycastHit hit = new RaycastHit ();
								if (Physics.Raycast (ray, out hit)) {
										if (hit.transform.CompareTag ("Your_Object_Tag")) {
												pickedObject = hit.transform;
								} else {
										pickedObject = null;


Now you have your pikedObject transform .Now do stuff in

void OnMouseDrag(){
//do stuff

pickedObject.transform.position= Input.mousePosition;