When sailing closer to the shore, close hauled, often you get a small lift - a "shore lift" - and this can let you sail further before you absolutely have to tack away.
Of course, while pursuing this beneficial change in wind direction, you may run aground, too.
Of course, while pursuing this beneficial change in wind direction, you may run aground, too.