The best way is to give your waistband little chance to show at all. That depends on what you're wearing, but bikinis and other lower-rise styles will work better than full briefs or thongs.
Of course you can always use tucked-in shirts, other layers, and belts to keep your underpants under your pants.
For plausibility as men's underwear, relatively plain solid colors are always good -- white, black, maybe navy or a couple others -- in cotton or similar fabrics. Satin in pastel pink, maybe not.
I haven't worn these myself, but it's a good example of what I mean: https://www.soma.com/store/product/cotton+modal+tailored+bikini/570345168?color=001&catId=cat40106
For stealth panties, my favorite is Fruit of the Loom Heathers Low-Rise Briefs. Having the low-rise will prevent them from showing and the grey waistband makes it look gender neutral. Just be careful of more feminine colors like pink and nobody will know the difference.
One of my long time favorites are the Jockey No Panty Line Promise bikinis. They are made with nylon and are low rise. They come in all sorts of colors and prints and I have most of the ones they have had in recent years.
Going to the Dr I wear black or Navy blue with no problem at all
If it isn't a unisex brand like Hanes, Fruit of the Loom, Jockey etc I'd say pairs with bands that don't advertise the brand. A lot of Victoria's Secret and Pink panties have the names on the bands for example. Also probably avoid lace waists and bows, but what fun is that?
One of my solutions is properly fitting jeans, belts and long shirts. Properly fitting jeans and belts won't ride down and longer, for your body size, shirts won't rise up past your waist line. For me I wear XL shirts but I was doing that long before I was wearing panties.
__________________
Wearing pretty panties since 10/2014.
No men's underwear in my possession since 12/30/2023.
Just take the same precautions you would if you didn't want your boy underwear to be seen.
Wear proper fitting clothes. Keep your to tucked in our wear one long enough to keep your back side covered if you bend over.
Wear the panties you love. Just be you and be happy.