Can I use ceramic resonator for ATmega328p?
A crystal is more accurate.
A ceramic resonator is more robust, smaller, and may be cheaper.
But which one is 'better'? Depends on what is more important for your application. Use a crystal if you need more accurate timing, eg. for a real-time clock, frequency counter etc. If accuracy isn't important then the ceramic resonator could be better because it is smaller.