Keep in mind though aside from the elected delegates, a lot of states add on delegates of their party leaders and so forth. So a portion of the delegates are definitely undemocratic. I guess they would tend to go for the establishment candidate, but I don’t know. No doubt they will be more easily swayed by the powers-that-be than the normal delegates.
The proportion of such delegates, however, is far fewer than the so-called super-delegates in the Democrat party.