Preference largely depends on your native language. Many English-speaking countries prefer Sophia because the “ph” is used in names like Stephen or Phoebe commonly in these countries. Sofia is more common in French and Spanish-speaking locales. Neither version is better than the other, so you can choose to use the version you prefer!