If you really need the money for basic survival, fine, we can argue about the morality of it. But even with a possible recession looming, it's unlikely that the price of a hotel stay is going to be the difference between life and death for you.
It's unlikely you are in basic survival mode yet, unless you've already lost your job and are living paycheck to paycheck and there are no available government programs to help you right now and no friends or family to turn to.
This epidemic is more similar to the hotel burning down. I would expect my money back in that scenario and do whatever I could to retrieve it.
With that said, many hotel chains and airlines have suspended their typical non-refundable rules, so a simple phone call would likely suffice.
I’d also expect any terms in the actual ToS defining “non-refundble” to get void in front of a judge in this specific cases if this was really pushed that far.
When a non-refundable booking is made, both sides understand that the correct way to follow through is to not have a refund, should circumstances (not caused by the hotel) arise where the customer could not end up staying in the hotel. Hence there was no bad faith on the part of the hotel.
So is a hotel denying you a refund during an epidemic. There is an obvious power differential here between Joe Blow and some billion dollar hotel chain. You need the money for basic survival far more than they need it to pad their quarterly earnings.