Both devices, when used responsibly, are safe. However, headphones (over-the-ear) generally sit outside the ear canal, reducing the direct impact of sound waves on the eardrum compared to earphones that sit inside the ear canal. This might be a consideration for individuals concerned about hearing health. Yet, the key is always the volume and duration of usage.