Gripen is optimal plane for country like Czech, which AF will never go to real combat. I have no idea about the unit price/maintenance and operational cost for F-16/JAS though. Gripens for Czechs are also brand new and leased, while F-16 were upgraded after general maintenance and had to be bought AFAIK.
Both are good multirole planes, e.g. can do even better what Su-22 and MiGs did.
Latest planes like EF are better, but much more expensive.
If I am country like Israel which fights from time to time, I would select F-16 as it is combat proven. For countries like Czech, if the JAS is cheaper, it is a good choice.
We have still MiG-29s but their operational cost is very high and A2G ability is rather poor.