modulestore.create_course checks for whether it exists, whether it clashes with another wildcarding the run name, and whether it clashes via case insensitive search.