However, both in reality are publicly funded whether that be through government grants or tax breaks on endowments. I think we should do a trade: an institution that in someway benefits from the public should get credit for the discovery but patent goes back to the public.
Edit: I realize there’s a chance that whatever I just said, there’s a small European country that already has implemented this idea.