Both skills are valuable for musicians. Music theory provides a solid foundation and understanding of how music works, while playing by ear can help you quickly pick up tunes and improvise. Ideally, combining both approaches leads to well-rounded musical talent.