How to get first child URL within Craft/Twig Nav tags
In that case you can put this in the href value:

{{ entry.descendants.type('page').first.url ?? '' }}


(Replace page with the other entry type handle(s).)