Both substances can impair cognitive function over time. Chronic use of Ritalin may affect memory and attention, while alcohol can lead to cognitive decline. Combining them may exacerbate these effects, potentially impacting long-term cognitive function.