It comes down to who was harmed.
Israel, as the ones who were attacked on October 7th, are justified in retaliating against Hamas.
Trying to leverage that event into justifying America's operations against Iran over two years after the fact (especially when Israel seems content to stay out of it so long as we're the ones fighting) is absurd.
When people use language like “absurd” to describe a policy of this grave geopolitical importance, I tend to tune out.