Always preferable to handle first . . . but not often possible. I had a custom shotgun built and the gunsmith had me send 7 different measurements for the stock. When I have to get off a shot at a flushing grouse it is over in two seconds. Having a proper fit makes the difference.

Rifles generally give you a little more time to adjust yourself to the stock. But whatever you can build in ahead of time is an advantage.