In a way both! Your second example is one of proximity concord. This happens frequently in natural speech and is the tendency for concord to be linked to the closest noun or pronoun rather than the head or subject noun.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Df2006I must admit, I would say "are" in the 2nd examp
I understand that when two subjects, one singular and one plural, are joined by either/or or neither/nor, the verb agrees with the nearest subject.
e.g. Either Mary or her parents ARE wrong.
Neither her parents nor Mary IS going.