The Mountbatten one was specifically changed to allow female inheritance and the 1st Earl had two daughters and no sons. I think it depends on how the title is set up in the first place though it can be recreated. There's a pressure group of daughters of peers set up to demand equal inheritance as many of them lose the family homes that go with the title when it disappears off to some distant cousin.Oh for sure, there are a clutch of peerages that can also pass through the female line - mainly Scottish, I think - but the Mountbatten peerage also goes to the daughter … Lord Louis daughter was the 2nd Countess.
I don’t think they will do anything for the York Dukedom other than keep it for the second son of the monarch when it’s free. of the traditional ‘royal’ dukedoms, It looks like the Kent and Gloucester ones will be unavailable for at least another 2 generations so it makes things a bit limited.
There's a few previous royal dukedoms not currently used, eg Albany, Clarence, Cumberland, Windsor(!), Ross, Connaught, Hereford, Kendal, Albemarle.