“Al-laylu wa-n-nahār” presents night and day as opposites; exploiting their contrast can yield antithesis (ṭibāq). “Al-qalamu wa-l-kitābu wa-d-daftar” groups objects from the same intellectual setting without opposition; it may illustrate semantic correspondence (murāʿāt an-naẓīr).
The relevant relation is either contrast or affinity. Mere co-occurrence of two nouns proves neither device. Identify what semantic relation the surrounding composition makes significant.