They are both fantastic choices. Truly. I had a 5-string version of the Yammie, it was sold. Versatility means nothing if you don’t like look, feel, tone. Yammies are tougher to mod - I know you said you don’t beat to, but…you never know.
Like @Barney said - pick the one you like looking at more, that’s worth more than the “versatility” you don’t even know if you need yet. Plenty of pros play a P bass their entire careers. U.S. hobbyists overthink things like versatility - versatility often means compromise. I’m a firm believer that every bassist should have a P bass
Versatility is overated. Conservatively 98% of the basses on the market are so versatile and can produce wide range of tone. Yours truly is one of the bottom 0.5% who’s seeking for bass with narrowest tonal range. I have about half a dozen basses with no tone knobs.
if I were in your shoes I’d buy a $200 Squier and see how you like it used market is flooded with people getting rid of their first time bass buying from the lock down. Before you know it you’ll be at number 7 one for each day of the week. It’s always been my dream to have 7 basses.