Flashing is easy to predict or control. The amount of volumetric expansion on saturted water from 600 psig down to 10 psig is about 250:1. If you have a 25 ft/sec line velocity coming into the valve, the velocity out would be 6000 ft/sec. This of course cannot occur, as downstream velocities would be M = 5, and vena contra velocities would be even higher if 100% of the flash occured at the pressure letdown point. Flashing is not instantaneious. Only partially flashing occurs in the valve and continues to occur throughout the downstream pipe. In some cases downstream pressure backing up into the piping can actually force cavitation at the valve.
There are two ways to handle flashing. One in single stage letdown, where you armour the valve trim and outlet, discharge the flow parallel to the axis of the downstream pipe, provide very robust guiding, and get out of the way. Support the piping well, as the flashing will result in variable two phase flow, and liquid/vapor slugs will momenteum impact into the valve and pipe.
The second method is multistage letdown. For cavitation to occur, vapor bubbles need to form and collapse, and this occurs with velocity accelleration and velocity deaccelleration. Not all trim types have distinct stages with complete velocity recover between stages which is a requiredment for cavitation to occur interstage. Taking multiple stage letdown, armoring the valve trim with hardened stainless, and providing many smaller flow passages can result in lower system vibration and a more uniform flow stream as it discharges out of the valve. Proper material selection of the valve body and downstream pipe is still important.
If you do mount the valve directly to the flash tank nozzle, be sure to calculate jet size and recovery length, as you to not want to tunnel out the flash tank as well.