Even though the distribution represents your 2022 RMD, it’s includible in gross income in 2023, the year in which it is received. What’s more, the 2023 distribution must be taken by December 31, 2023, so there will be two distributions taxed in the same year.
Rules that limit the deduction of losses from passive activities to income from other passive activities. Passive activities include investment rental operations or businesses in which you do not materially participate.