Hard is a simple word, means something is solid or not easy.
Difficult only means not easy, it's more specific, and is casual/formal
Both words are equally popular, so you can use them interchangeably. They both mean the same degree of being not easy.