I would argue the second instance (pandemic) was much more nearly what a good government should do than the first one
So that govt money went to the wealthy to buy up houses (Californians bought real estate in the Midwest as investments and it drove up housing prices along with small immigration to these states)
Farmers etc benefited from bailouts when they were doing very well. It was a large blunder.
Meanwhile student loan forgiveness was overruled by the supreme court.
It's really hard to ignore the implication that it ended up being more like a wealth transfer than anything else.
Between the latter and the former I believe the former was a much smarter choice in the medium to long term.