If they really cared about their coworkers, they would stay home and get better. If they care about being seen to be at work (for whatever reason - maybe they have a toxic culture of presenteeism) over their coworkers, they'll come in.
Of course, if the cost of staying home is that everyone loses a bonus, we can come to some arrangement. I would be happy for my sick colleague to take it easy and just mark time while the rest of us covered their work for the day, and I'm sure we can send them off "to gather supplies" or some such if we need to. You get what you incentivise; you incentivise employees to come in when they're sick, that's all you'll get.