In «ghayra Zaydin», ghayr and Zayd need not have the same case.

Al-Mustathnā: Connected and Disconnected Exceptions, Four Case Rules