Open Collector Tristate Buffer
I think you can do this with a single chip if you use a dual NAND gate with open-drain output like 74LVC2G38 (both gates below have open-drain output):



That runs off 1.65 to 3.3 V and it's available in a 2x3 mm 8-pin package, which is pretty close to SOT-23-sized.