Although fluorine is more electronegative, chlorine has a higher electron affinity. This is because the small size of the fluorine atom leads to strong electron-electron repulsion when an extra electron is added.