Effects of inertia and stratification in incompressible ideal fluids: pressure imbalances by rigid confinement