I've had a manager take credit for my work, gaslight, and fire me when he was getting in trouble for underpreforming. I had no relationship with his bosses; I kept my nose down and did my work. I documented the craziness, but it happened so fast I could not defend myself. I learned to toot my horn some too. But really I should have left that department/company sooner. Yrmv.
I don't think a good manager will take full credit for underlings work.