I always feel conflicted with this.
Using my password manager to store 2FA codes is convenient, but it adds a layer of indirection if they are elsewhere.
But if you've compromised my password manager, you almost certainly have enough access to my machines to get to the alternatives.