Comparison of long-range corrected kernels and range-separated hybrids for excitons in solids