This is true regardless of if your tech lead is an idiot or a genius although you should include that as one of the criteria by which you evaluate other offers.
You should also calm down about this and not take it personally. You're using your skills and talents to put food on the table. Your tech lead is using his. His manager is using his. They're not out to personally screw you. You do get credit. It's called money and it arrives in your bank account every two weeks or so. If you don't think the credit is proportional to what you bring to the table see the start of this comment.