You didn't specify any performance requirements. RF power level? Acceptable loss? Switching time? Power consumption? Isolation in off state?
* PIN diodes --> moderate loss, larger power consumption (depends on RF power level being switched), somewhat unique (hard to get) diodes, large RF power handling, larger overall size, moderate linearity.
* RF CMOS switches --> abundant (Digikey or any other supplier), low loss, low cost, various packages, nearly zero power consumption, power handling up to about 5W, RX only (<10dBm) chips are very cheap, excellent linearity.
* Relays --> range of RF power handling up to huge powers, larger size, can be very expensive for the very high power coaxial relays, but only a few bucks for <1GHz moderate power level SMD relays, excellent linearity.
Of the above 3, PIN diodes require the most RF design knowledge to do properly. Not the best choice unless you have to.
Using NPN transistors or optocouplers for RF switching at the frequency you specified is nonsense.