Retirement tax questions

No.  It doesn't matter what you did with the RMD.  It is taxable.   Then if you bought shares with it that is your cost basis in the new account.