Engineer with 34+ years of experience, was licensed as a Professional Engineer in the state of Georgia for 25+ years. Lots of good information given above, so I can only add a little theory to the mix. In order to minimize bending, you want a high moment of inertia. In order to resist torsional (twisting) deflection, you want a high polar moment of inertia. Looking through standard beam tables, it appears that the I-beam as described by the OP is actually known as an S-beam. The dimensions given are close to those of an S10-35 beam, which is 10 inches tall and weighs 35 lbs per foot. It has a moment of inertia about the x-axis of Ix = 147 inch^4 and along the y-axis it is Iy = 8.36 inch^4. The polar moment of inertia for this beam would be the sum of those two quantities, or J = 155.36 in^4. The square tube has an Ix = 62.27 and Iy = 62.27 and a J = 124.54. Normally the best shape to resist torsional deflection is circular, i.e. round tubing (that's why driveshafts are round rather than square) but that wasn't one of the options given. The square tube would normally be better for torsion but since the S-beam is so much larger, in this case it is better than the square tube in bending in one axis and better in torsion. The S-beam would not be a good choice if the loading is in the y axis. It all depends on the design and how the structure is loaded. If you would like to send me a drawing of your power hammer, I would be happy to look at it and give you my suggestions.