Cognitive distraction occurs when an individual's attention is diverted from a primary task due to mental engagement with unrelated thoughts or tasks, significantly impairing their ability to process information and make decisions. It is particularly critical in activities requiring sustained attention, such as driving, where it can lead to decreased reaction times and increased error rates.