How can I distinguish floating versus sinking LEGO pieces?
Most Lego pieces sink. Some of them will float briefly if they have air trapped inside. Almost any construction of Lego elements will sink as there are gaps between pieces.

There are some boat pieces that are designed to float, such as the Police Patrol Boat set from 2016. A Brickset list shows some other boats that float.