I recently did this and I chose cellulose. Mostly because I didn't want to deal with the fiberglass. I still need to go into my attic for a few more projects and I felt the cellulose was a better choice. Both solutions work. I believe the fiberglass has more R per inch ( I could be wrong), but also using cellulose is suing recycled material....so you can feel good about that if it tickles your fancy.
On that note, make sure you spend time air sealing all the gaps, penetrations, top plates, etc etc... While doing insulation alone will help, prevent air from escaping into your attic will have a huge impact on the performance of your insulation.