How Life and Luck Changed Earth’s Minerals