Cancer cells are different. They are created when the DNA in them is altered through mutation and/or outside influence. As I understand it, the DNA in a cancer cell is different from all the other cells in your body.
Does anyone know if it is different enough that it cannot be used to successfully identify which host a sample came from? If the only evidence left behind by a criminal was some cancer cells, could a DNA lab say it came from them?
So, a court would prefer the long legacy of statistics about polymorphism before more-complicated sequencing. But that leaves out your specific edge case. For example, some cancers alter regions of chromosomes or jettison the Y chromosome altogether.
An interesting counterexample may be monozygotic twins. I imagine an optical comparison could confirm either or both twins match, but later-developed tests might rule one out. Those tests might be sequencing, or microbiome, etc. If the sample shows evidence of cancer, and only one twin has (some) cancer, I think we should not presume that the DNA evidence is strong enough to prove anything.