You hit the nail on the head. There are valuable insights that can be gleaned by knowing whether someone was transgender at death. It’s just difficult to do analysis without any data.
This is what that information should be included on death certificates. It can be used to improve the lives of future generations.