This question already has an answer here:
This is a question about the show. In the books, some characters are alive that are dead in the show, so the answer would be different.
In S08E04, Queen Daenerys makes a show of granting Storm's End to Gendry, the bastard of King Robert Baratheon. Before she does, she asks if anyone knows who the current Lord of Storm's End is. Nobody knows, and she gives it to Gendry.
Did Queen Daenerys give Gendry something he wouldn't have had otherwise? Or did she just make a big show of pointing out that he was the rightful heir?
Obviously a real Baratheon would inherit before Gendry. Was there an obscure Baratheon that nobody knew about? One that Queen Daenerys supplanted when she made Gendry the Lord of Storm's End?
Do bastards ever inherit property? When no true-born heirs are alive? If so, then as the oldest (possibly the last) bastard child of King Robert, wouldn't Gendry be the rightful heir?