I have for a long time expressed my wish to be cremated when my time comes, but once I became aware of the environmental costs incurred, composting seems like a much more sustainable option.
The funeral industry still has tremendous influence and will try to keep people locked into the traditional (and more expensive) options for as long as possible. Green burials are now legal in Washington, Oregon, California, Colorado, and Vermont. Hopefully they will soon be available and used in many more places.
https://48hills.org/2023/01/after-death-returning-your-body-to-the-earth/