Why would a plane with an emergency not land at the nearest large airport?
Depends what the emergency is.
e.g. You may have a medical "emergency", where the closest airport with suitable, quickly accessible medical facilities might not be the one nearest to you.