Unless a piece really cries out for a doghouse bass or for pieces on pipe organ that provides its own bottom without any help, a P or J can handle any jazz or (broadly) rock genre. Altho, there are arguably some songs whose character would be drastically changed if a fretted bass were used.
Tim
Tim