Yes, exactly. Neville’s death would not have created these emotions, but the reason is not that he is male and Hermione is female. Neville should not be able to stand just as close to Harry. Neville is in no position to be anything as close to a comrade or equal as Hermione was. Neville is just someone who Harry has sympathy for and by whose development Harry was impressed. This is a very different thing from the “the two of us are different from the rest of the world” connection that he quickly developed with Hermione at the beginning (and which then faded off a bit, not least due to the questionable SPHEW arc).
Yes, exactly. Neville’s death would not have created these emotions, but the reason is not that he is male and Hermione is female. Neville should not be able to stand just as close to Harry. Neville is in no position to be anything as close to a comrade or equal as Hermione was. Neville is just someone who Harry has sympathy for and by whose development Harry was impressed. This is a very different thing from the “the two of us are different from the rest of the world” connection that he quickly developed with Hermione at the beginning (and which then faded off a bit, not least due to the questionable SPHEW arc).