Won't always work
All competitive male swimmers know about this.
Looser speedos may help but may slow you down in the water. Speedos are designed so you can keep the contents of your front pouch at an angle, under control and less visible. And even if you do get all excited at a swim meet, nobody's going to care as long as you don't actively try to draw attention to this.