Three weeks is a lovely amount of time to have for Sicily. I urge you to pick up at least one comprehensive guide book to the island (get more if you go to the library rather than a book store) and read it. We don't know what might pique your interest. There's also a BestOfSicily website that is often recommended.
Be aware that Catania actually has more flights than Palermo. You might consider flying into one of those cities and out of the other to avoid the need to do a complete loop on the island.
There's a particularly nice group of Baroque towns in the southeastern part of the island. Do some reading on Ragusa, Noto, Modica, Scicli and others in that area. Ragusa has enough to see that I don't think two nights would be a mistake for the town itself (to allow for at least a full day). The others are smaller, and even via public transportation it is possible to visit two in one day, or perhaps three with some luck with the bus/train schedules. I visited from Siracusa so don't know how well Ragusa would work as a base for all of them.
I enjoyed a couple of day-trips into the center of the island, which is much less touristy than the coast. On my next visit I plan to park myself in the area and visit sites from a more convenient location rather than commuting in from Catania. Places to consider visiting include Enna, Piazza Armerina (Roman villa with super mosaics nearby, and Greek ruins at Morgantina), and Caltagirone.
Trapani and its medieval-hill-town satellite Erice are interesting places in the NW. Cefalu is now a touristy beach town but is a worthwhile and picturesque side-trip from Palermo.
There are lots of good Greek ruins, but that's not my thing. I did especially like the archaeological park in Siracusa. The city also has an archaeological museum that's good, to go along with the large medieval Ortygia district (my favorite such area in Sicily).
I was underwhelmed by the Egadi Islands, but I think the Aeolians are probably more interesting.
Having a car will make your trip more efficient, but you do not want to drive in Palermo! I'm not sure about Catania, either. If you start in one of the two big cities and end in the other, you may need to rent the car for only 15 days or so. You can get from Catania to Taormina relatively easily (or vice versa), and Taormina--built on the side of a hill--doesn't really need a car either.