There are two points to make.

1. (As said above) both objects will displace the same amount of water (their weights). If they are the same average density, there will be the same volume above the surface.

2. The attitude of any object when floating will end up with the least gravitational potential - it will be 'as low as possible'. So a pole wouldn't float upright, however dense it was; it would always lay on its side in the water. For an object with arbitrary mass distribution, the attitude could be 'anything'.