I play or have played both in bands and I can get away with some lead solos etc but that’s my limit
I’m an excellent rythmn guitarist and I was a half decent rock bassist certainly good enough for all the bands I was part of over a 40yr period.
The bass always felt the right instrument for me ( I’m a big tall guy and the bass feels more in proportion to my frame if that makes sense whereas I feel I dwarf a guitar a little !
So I would say the two overlap nicely if you put in the effort on both as they need differing skills and where your place is in a band etc