Both words are pronounced the same, but "whilst" is considered more formal and is less common in American English.