They mean the same thing, but cognizant is a less common word. English has many synonyms. Most are used in everyday speaking, but some, like cognizant, are usually reserved for more academic settings. Amusingly, the more academic words, because they come from Latin, often through French, are more familiar for learners whose first languages are French, Spanish, or Portuguese.