In general, you want to have as many stats as possible, no secondary is worth dropping item level for. At equal item level in general you prefer intellect, mastery and crit while trying to avoid haste.
Intellect: Increases your spell power which boosts your abilities throughput.
Mastery: Echo of Light - a % of your direct healing is repeated over 6 seconds. Very powerful throughput when it does not overheal
Critical Strike: Has no synergies with the holy priest toolkit, other than increasing your chance to critically hit.
Versatility: Flat out increases damage and healing done, while decreasing damage taken.
Throughput wise, the races are all really close and you will never be forever behind because one chose one race over another.
Goblin does, however, deserve a special shoutout due to their racial offering some much-appreciated mobility.
On the Alliance side, Void Elves have a decent mobility racial as well, and as such are the premier option.
Enchant weapon - Celestial Guidance
Enchant ring - Tenet of mastery
Enchant gloves - Shadowlands Gathering (optional)
Enchant chest - Eternal Bounds
Enchant Bracers - Eternal Intellect
Enchant Boots - Speed of Soul
Intellect Gem: Leviathan's Eye of Intellect x1
Mastery Gem: Masterful Jewel Cluster
Armor Kit: Heavy Desolate Armor Kit
Oil: Embalmer's Oil
Healing Potion: Spiritual Healing Potion
Mana Potion: Potion of Spiritual Clarity
Flask: Spectral Flask of Power