Edinburgh Castle is the one everyone comes for, and it earns the crowds. But it's also the most expensive of these ten, and the other nine within a couple of hours of the city are worth your time too. Here's my ranking, with what each one costs and which I'd send you to versus skip. Some are closed for conservation work, so check the card before you set off. For the city itself, start with things to do in Edinburgh; for a day out that isn't castle-first, my day trips from Edinburgh guide covers North Berwick, Glasgow, Loch Ness and the rest.
Prices, opening times and closures are from Historic Environment Scotland's own pages. Crichton is closed, but I've kept it in with the closure stated up front, because the free grounds walk is still worth it.