The quality of tequila plays a significant role in the overall taste of the cocktail. Higher-quality tequilas tend to have a smoother and more complex flavor profile that can elevate the cocktail, while lower-quality ones might make the cocktail taste harsh or overly alcoholic.