Either is acceptable and you can also drill and use expansion shields. Personally, I always have trouble with masonry nails. They are hard to drive and tend to bend. Perhaps this is because I haven't used them in a long time but I prefer to drill with a masonry bit and use the expansion shields. You can also rent a nail driver that uses a small explosive charge and I would do that if I had a lot to do.