The science is not there. It probably will never be there. We can only screen for certain conditions. Close marriage will turn up all sorts of new conditions no one knows about (ahead of time).
Until the day we can make our DNA "perfect" close marriage will always be a problem.
And on that day I suppose even sibling marriage (or incest) would not be a genetic problem.
You need to differentiate between Mendelian and Complex genetic disorders. While genetic tests are useful to indentiy disease caused by a single allele (Mendelian disorders), they today are inconclusive for many other Complex diseases, like rheumatoid arthritis, with a known genetic component. These disease are multifactorial: the interplay between several genes (variants) and environmental stimuli cause the disease. One of several genetic mutation must be present for the disease to occur, but without an environmental stimulus, the disease will never materialize. As such, even though we have acces to a full genom sequence, genetic tests are inherently limited and thus inconclusive in determining risk for many diseases.
This taboo does not come from the Bible, since the Bible does not prohibit cousin marriage. I assume the taboo comes from seeing problems in offspring.
Scientifically, occasional cousin marriage is not usually a problem. It's only when it's repeated more than once that it starts to be a problem.
(Part of the explanation is that humans are not particularly genetically diverse overall)
For a long time, many deemed marriages between cousins as undesirable precisely because of the unknown risk of genetic problems in the resultant offspring. But now, if scientific evidence can tell you that your marriage to your first or second cousin is highly unlikely to cause genetic defects in offspring, might that shift our understanding of such relations?
I can't help but think this might usher in more and more acceptance towards such situations just as contraception and STD screening and medicine did for sexual activity between younger people and more partners.