A big part of the reason for my photography is so I can appreciate and perceive the world around me in a more thorough way. That's unrelated to what happens to my stuff when I die.
If you have a chance to teach other people photography stuff , or other things of mutual interest and importance, that's going to outlast you as well.
The actual photo materials could go up in a fire at any moment before you die. It would be rewarding to see them remain useful to someone for a long time, but when you're dead, it won't be a concern. I'm young and would accept the material of a local artist for a combination of local history and artistic merit.