Remember, you're hoping the person who receives your letter has no memory of your closing at all. The last thing you want is a hiring manager going into an HR meeting with your cover letter in hand, asking the team if they want to meet with "Mr. Kindest Personal Regards."
Sometimes a person's gender is unclear from a name _ names like "Corey" or "Blake," are both common women's and men's names. If that is the case, do some investigating to determine gender from searching on LinkedIn or a company website. But if it remains ambiguous, simply write out the person's full name, dropping the title. For example, "Dear Corey Meyer."