Can you damage logic gates by connecting two outputs together and powering one?
Another solution would be to use open drain logic gates with a pullup resistor. The obvious question is what do you expect to happen when you connect your logic gates together?