Basically to put something in the sun you’ve got to bring it to a near-standstill relative to the sun. You have to slow it down from the speed Earth is orbiting at (2 * Pi AU/year) to almost zero. It takes a ton of rocket fuel to do that.
That plus the danger you mentioned makes burying it the cheaper and safer option.