I'm nonbinary partial transmale, so couldn't wear femme "panties." I solved my problem by designing my own simple boxer briefs, made from 4-way black stretch cotton, and only four seams, no hem. A seam down each side and one in the middle, where the crotch is, and one to run around the top, where I then thread in a thin piece of elastic.
One way I make them here in Thailand, which I can't buy stretch cotton, is to buy an inexpensive stretch black T-shirt, and cut out the brief using the sides of the T-shirt as the sides of the boxer shorts. the I just sew a seam at the crotch and around the top.
After I thread in the elastic, I can quickly shorten or lengthen the elastic as needed if I get bloated later on.
They're so comfortable I can hardly tell I'm wearing them, and they never ride up or bunch.