Structures under internal vacuum or compressive loads can be fairly complex to analyse, as they can buckle. Structures under tension or internal pressure are much simpler. These structures use materials that are much stronger in tension than they are in bending, so the best designs assume no bending strength at all.
For a suspension bridge, that means cables pulled straight and tight. For a pressure vessel, watch what balloons and bubbles do - they form round shapes that maximise internal volume for the given surface area.
The most common shapes are cylinders, sometimes spheres (and very occasionally, domes). Most tanks are cylinders because forming spherical ends is much more complicated than forming a cylinder body, but the sphere is the most structurally efficient shape. Aircraft use cylinders. Rockets use cylindrical tanks and a very small number (Starship, Atlas) use balloon tanks where internal pressure is required to avoid collapse in certain load cases. Spheres are only used in very special cases, due to the difficulty of manufacture, despite needing only half the thickness for a given diameter as an infinite cylinder would.
The most likely shape for a space habitat is a cylinder, as with your typical airliner. Most of these are perfectly cylindrical. This avoids any weak point - the air pressure (which is a considerable load, 7 pounds on every single square inch at 0.5 atmosphere differential pressure) is spread equally around the circumference. There is no concentration of load at the zenith. There may be a concentration of weight load at the zenith when the airliner is depressurised, but that is insignificant compared to the pressure loads it must withstand.
Note that aircraft are made as complete cylinders - they don't have a flat on the bottom. That's because if they had a flat on the bottom there would be a huge concentration of load there, with the internal pressure trying to push the shape into round. The awkwardly shaped space below deck is therefore used for cargo. This could be avoided in a space habitat by using a vertical cylinder, with pressure containing domes at top and bottom. There could then be several internal flat floors, with only one awkward dome at the bottom.
If a foundation is used, a flat bottom can become attractive. You could have a flat concrete base internally lined with some airtight floor seal material - either metal or polymer. But the internal pressure is going to try to pull it into a curve, which means you will get a significant tension load at the edge, balanced by a significant compression load at the centre, requiring a very strong foundation.
Taking Starship at an internal pressure of 100kPa as an example, the air pressure on a circle of 9 metre radius is PI x (4.5)^2 x 100 = 6362kN
or 649 tonnes force, spread around the 28.3m circumference. That's the equivalent of 23 tonnes per metre of circumference. You need nicely rounded top and bottom domes to efficiently contain that pressure. Even a drinks can employs a carefully engineered reverse dome in the bottom to spread the load, rather than a flat bottom.
For the walls of Starship, we have (per metre of length) 9 x 1 x 100 = 900kN
or 92 tonnes circumferential force. This is spread over the two opposite walls, meaning each must bear 46 tonnes per metre (exactly double that for the dome, as mentioned above.) This considerable force keeps the walls well rounded and is actually necessary to prevent buckling under vertical loads at launch (from the tanks and payload above, not so much the structure itself.)
Conclusion: The challenge in designing a habitat is withstanding the pressure needed to make it habitable, not withstanding the structure's own weight. Round tops and round bottoms are best - unless you have an exceptionally sturdy foundation that allows a flat bottom, or a well engineered solution like the inverse dome bottom of a drinks can.
EDIT
This edit is added to address the question edit 25 May 2024.
Balloons work in the exact same way in space/vacuum as they do under normal atmospheric pressure. The relevant thing is the difference between the internal and external pressure. Here's an example of an early American "communications satellite" which was nothing more than a balloon, inflated to a low pressure in space.
The pressure inside an enclosed space does not concentrate at the top, it acts equally in all directions. The most efficient shape is the shape adopted by a bubble - a sphere in the case of a free floating bubble and a hemisphere in the case of a bubble on the surface of a liquid. The flat bottom would be difficult to achieve in a space habitat, however, due to the need to transfer the load to foundations.
OP has provided two diagrams, one with a conventional outward dome and the other with an inverse, inward dome. As per the 9m diameter Starship example I considered previously, this dome will need to accomodate 649 tonnes of force around its circumference (23 tonnes per metre.) It is hopefully clear that the weight of the dome will be negligible in a well engineered solution, maybe around 10-20 tonnes total.
The most efficient shape is the spherical, conventional outward dome per the diagram on the left. The dome material is not subject to bending load and the material can be considered flexible in design calculations. Any dent from a meteorite which does not puncture the dome will tend to be pushed back out by the internal pressure. No bracing is required, because of the natural bubble shape of the dome.
The OP proposes an alternate design with an inverse, inward dome. This dome will be subject to buckling load due to the internal pressure. It will, effectively, want to pop out on the other side (upwards.) Typically pressure vessels are on the order of 10 times less strength-efficient when used in this mode. Stiffness must be considered in the design, and for a material to be stiff, thickness is of benefit. Bracing may help improve stiffness. Additionally the design encloses less overall volume. If a flatter roof is desired, ballast or internal tie points may be considered, as in the design of an inflatable mattress.
OP is advised to observe the design of existing pressure-containing equipment: pressure vessels, aircraft, sports equipment, water toys. All typically have outwards curves. Inwards curves are used for special reasons (such as the inverse dome in the bottom of a drinks can, a design adopted to prevent it falling over.)
Here is an example website selling inflatable sports domes. A space habitat will need to handle a much larger differential pressure internally so will likely be more optimal in shape (not a rectangle base as is convenient for sports domes) and perhaps use stronger material such as aluminium (though inflatable polymer space habitats are already being tested.) But the design concept will be the same - in order to avoid issues with stiffness of material, an outward curve that works with the internal pressure will be preferred over an inward curve that works against it.
Finally, regarding the image of the classic stone arch in compression: I would note that a modern suspension bridge with a cable in tension is far more weight efficient.
The ancients had to use compression structures as they had no suitable material that was strong in tension (the mortar joints were particularly a problem). Steel-chain suspension bridges have been around since the early 1800s, and any structure in space is going to make a lot of use of the weight advantages of tension structures.