Does income from RSU count as earned income for IRA contribution?

I retired in 2022 and had restricted stock units that were awarded to me previously but had not fully vested, and they continued to vest for the next 3 years.  For 2023 I had income from the RSU shares that were distributed along with income from ESPP shares that I sold, which were reported on a W-2 in box 1 as wages and compensation.  Can I contribute to an IRA based on that as earned income?  I read some opinions that the answer is yes, while others say it is deferred compensation so it doesn't count as earned income for IRA contributions.