Board scores are very important in competitive specialties like dermatology, but AOA, rotations grades, LOR?s and especially research is very important in dermatology.
Ophthalmology isn?t as competitive as dermatology, but good scores and research always will help you to match in a top program.