Only one object has bloom when Z combining
Well, I found an answer myslef. Thanks to Bruno, I got the idea of combining the masks that the Z combine node creates for each object, so I made a setup like so:



It combines both objects' silhouettes to make a combined mask, and as you see, the depth values are correct as well.