The printer isn't going to be the determining factor in your goal, I believe, as much as the filament choice will be. 3D printed parts are generally considered to be porous and not watertight unless coated with a sealant of some form. Gaskets imply that the part is going to provide sealing. That requires a flexible filament such as TPU, also known by the brand name NinjaFlex™. There are other flexible filaments on the market. My experience with the flexible filaments is that they will also provide a bit less porosity, but testing and experimentation is indicated.