The short answer
If you mean a village, Dunure on the coast road north of Girvan is the one everyone photographs, and Barr in the hills to the south-east is the prettiest place to actually walk around. If you mean a town, Largs, at the northern end of the county, edges Troon.
Pretty is a matter of taste, so below is how we would compare them, with the reasons. Distances are from Girvan.
The villages
Dunure (17 miles, 30 minutes). Whitewashed cottages around a tiny stone harbour, a jagged castle ruin on the rocks above, and Arran filling the horizon. It is the single best short stop on the A719 between Girvan and Ayr, and the castle and park are free. It is small: the pretty part is one harbour and one row of houses, and you will have seen it in fifteen minutes. See Dunure.
Barr (8 miles, 20 minutes). Whitewashed cottages, a bridge, a church and an inn in a bowl of steep green hills where the Gregg Water meets the Stinchar. It is a conservation village and it looks like one. There is nothing to "do" in the attraction sense, which is exactly the appeal, and the forest walks from the village are the best in inland Carrick. Our pick for the prettiest village to spend an afternoon in. See Barr.
Straiton (17 miles, 30 minutes). A single street of eighteenth-century estate cottages near the head of the Water of Girvan, now a conservation area, with the Hunter Blair monument on the hill above and a waterfall walk up a wooded glen. Five minutes to see the village, a day for the walks around it. See Straiton.
Colmonell (11 miles, 20 minutes). The least-known of the lot: one street of cottages, a church with stained glass associated with the Morris and Burne-Jones workshop, and the conical hill of Knockdolian rising behind. Quiet enough that you will probably have it to yourself. See Colmonell and the Stinchar valley.
Kirkoswald (8 miles, 15 minutes). A main-road village rather than a picture-postcard one, but with Souter Johnnie's thatched cottage and the kirkyard where the real Tam o' Shanter is buried. Charming rather than pretty. See Kirkoswald.
Ballantrae (13 miles, 20 minutes). Low houses at the mouth of the Stinchar, a ruined castle on the bluff and a great shingle spit. Atmospheric and a little closed-in rather than conventionally pretty, and the setting is better than the street. See Ballantrae.
The towns
Largs (about 55 miles, an hour and a quarter). A proper Victorian seaside town with a long promenade, the art deco Nardini's café, the "Pencil" monument to the Battle of Largs, and the islands of Cumbrae and Bute across the water. Its bathing water is rated Excellent. It is busy in summer and the beach is stony rather than sandy, but as a whole town to look at, it is the one we would pick. We compare it with Girvan in Girvan or Largs.
Troon (31 miles, 45 minutes). Well kept and prosperous, with two long sandy beaches, a marina, the Ballast Bank and Royal Troon at the end of the esplanade. Tidier than Largs, less dramatic. See Troon.
Millport (on Great Cumbrae, a short ferry from Largs). A small island town around a curving bay, with painted sea-front houses and a famous crocodile-painted rock. Technically a town and undeniably pretty; it takes a day to get to from Girvan.
Alloway (21 miles, 35 minutes). Strictly a suburb of Ayr, but its old centre around the Auld Kirk, the Brig o' Doon and the Burns Monument gardens is lovely, especially in late spring. See Alloway.
And Girvan?
Honestly, Girvan is not the prettiest town in Ayrshire, and we would not claim it is. It is a working harbour town, and parts of the centre are tired. What it has is the best setting of any town in the county: two miles of sand, a working harbour, Victorian villas along the front, and Ailsa Craig sitting ten miles out, turning orange at sunset. Stand on the promenade at the end of a summer evening and the question of whether the high street is pretty stops mattering. See is Girvan worth visiting? for the full honest verdict.
Seeing several in a day
From Girvan, the best way to see the prettiest of them is the coast road north: Maidens, Culzean, then the A719 to Dunure, with the Electric Brae on the way, and back by the A77. In the other direction, the Stinchar valley loop takes in Ballantrae, Colmonell, Pinwherry and Barr in about 35 miles of quiet road. See the Carrick castle coast day trip and the wild coast and Ballantrae day trip.