Weight is far less important than pedalling position, kinematics and gearing- all of which will combine to make a bike go uphill well (or not).
The Pinkbike group tests have an efficiency test- which one crosses the line on a climb first at a steady 300 watts. It’s usually surprising which one it is (the RAAW Jibb won its group test IIRC and it is not optimised for weight).
Weight is far less important than pedalling position, kinematics and gearing- all of which will combine to make a bike go uphill well (or not).
The Pinkbike group tests have an efficiency test- which one crosses the line on a climb first at a steady 300 watts. It’s usually surprising which one it is (the RAAW Jibb won its group test IIRC and it is not optimised for weight).