Interestingly - SP have 2 marriages in Ayrshire on the same day but in different RD's. Probably the same couple but spelling of surnames slightly different
27.9.1822 Robert MillAr to Janet MurdocH - Kilmarnock
27.9.1822 Robert MillEr to Janet MurdocK - Stevenston
What this tells you is that before their marriage one of them resided in Kilmarnock and the other in Stevenston.
The banns therefore had to be proclaimed in both parishes, hence you get two records of the same event.
The spelling variations mean nothing more than that the clerks in the two parishes had different notions of how the names should be spelled.
Actually SP indexes both entries for Janet as Murdoch nor Murdock. See screenshot.