Trump’s win was a failure of many things—but democracy isn’t one of them