There are respectful ways to handle a deceased betta.
Options:
Flushing down the toilet is common for small fish.
Burial in a shallow garden grave is possible.
Composting is eco-friendly.
An aquarium memorial with a stone or decoration can honor the fish.
Do not bury in public places like parks or cemeteries. Handle the fish with care and wash your hands afterward.