Trying to extend coverage in this fashion isn't worth doing. Even with highly directional antennas, most of the power transmitted doesn't end up in the receiver. Thus, your "repeater", which is really two antennas joined by coax, has very little power available to transmit.
We can do some math.
Let's assume that your buildings are 40m apart, and your transmit power is 20 dBm (the legal maximum on 2.4 GHz in the US). Let's further assume that you have 24 dBi antennas on the Wi-Fi AP and your repeater. We can use the Friis transmission equation to calculate how much of that power is received by the repeater:
$$ 20 \:\mathrm{dBm}\
+ 24 \:\mathrm{dBi} \
+ 24 \:\mathrm{dBi} \
+ 147.6 \
- 20 \log_{10}(40\:\mathrm m \cdot 2.4 \:\mathrm{GHz}) \
= -4 \:\mathrm{dBm}
$$
So, assuming no losses in your repeater, it makes the 20 dBm transmitter look like a -4 dBm transmitter. Or put another way, the repeater introduces 24 dB of loss. By reciprocity, this loss works in the other direction as well: how ever much power is received by the repeater from the clients, the AP will see it as 24 dB less.
Besides that loss, which is substantial but maybe not impossible, you have a new problem. While the AP might hear the nodes in the external building, other nodes won't. This is called the hidden node problem, and will result in transmit collisions which seriously degrade the performance of your network.
To solve your problem, best is to run Ethernet to the building, and install an AP. If Ethernet is not possible, then use a cross-band Wi-Fi repeater. They are available for $100 at any big-box electronics store, where they are usually called a "range extender". You are going to spend at least that on antennas and coax for your passive repeater solution, which will not work as well.
Regarding which omni-directional antenna is better, it's impossible to say, generally. An isotropic antenna has exactly 0 dBi gain, by definition. However, such an isotropic antenna can not be physically realized, the closest we can come is a dipole, which is 2.15 dBi in free space. Of course, the presence of the Earth or anything else conductive around the antenna changes that.
In any case, any antenna with higher gain works by being more directional. Remember that the antenna's radiation is a three-dimensional function. An "omnidirectional" antenna radiates equally in all directions in one dimension (typically, azimuth), but this says nothing about how it radiates at different angles of elevation. Thus, an antenna that is still "omnidirectional" but quotes a higher gain is either:
- an outright lie by Chineese marketing departments, or
- radiating more horizontally, and less up or down.
Depending on the orientation of your antenna, and the location of your radios, this could be good or bad. What you want to do is minimize radiation in directions where you don't want coverage, which will in turn maximize radiation in directions where you do want coverage. Which antenna achieves that depends on your particular environment.
I am aware an active repeater would be better
. Never ever use simple repeaters for WiFi unless you absolutely have to. They are a thing of the past and have been made obsolete by high availability of access points. I know that this is not what you're asking, so I'm not posting an answer, but in this case, I'd just place an access point connected to a directional antenna to receive signal from building A and connect that AP using Ethernet to another in building B. This way, you'd get wireless bridge and much better service for users in building B. +1 for interesting question though. $\endgroup$