Spanish is objectively superior to portuguese, spanish shares a few of the same flaws but it's not nearly as bad in any regard.
Portuguese is an awful language, and it's spoken by awful people. Spanish is better because it's spoken by mostly awful people, and as a language it's so-so
Here's how you learn portuguese:
>Memorize as many words as possible
There are at least 5 words for anything imaginable, from the smell of feet to the water left on a leaf after it rains. People from different places use different words. You have to be able to at least understand the words even if you can't recall them when speaking yourself. You know how when you want to learn japanese there's the core2k/core6k sets of 2000 and 6000 words that should make you able to understand most of what is told to you in a daily conversation? Try core50k.
>Memorize the spelling of every single word.
Portuguese pronounciation can leave the spelling of the word ambiguous, and the many rules that dictate what is right or wrong have as many exceptions as use cases. Spelling varies by dialect. There are a lot of words with different spellings pronounced the exact same way.
>Memorize the pronounciation of every single word
A word's spelling can very commonly make the interpretation of how to pronounce the word ambiguous, and just because the pronounciation is ambiguous doesn't mean both options are right. What is right or wrong can vary by dialect. Ambiguosity can appear or disappear based on dialect.
>Pick your phrase structure
This isn't much of an issue but there are a trillion ways to structure a portuguese phrase and none of them are valid everywhere, it isn't much of an issue because you can easily understand a phrase that had its words ordered in a different way than you usually do.
>Memorize autistic features of the language
Memorize every plural version of a word, memorize aumentative/diminutive versions of a word, memorize every single conjugation, memorize suffixes, memorize prefixes, memorize when to use dashes, memorize composite words, memorize the arbitrary gender of every single word, memorize the multiple meanings of words that have multiple meanings that aren't related to each other at all, memorize the unique meaning an aumentative/diminutive version of a word can have, memorize aumentatives/diminutives of words that can be interpreted as an entirely different word that is written the exact same way because the suffixes/prefixes used for aumentatives/diminutives aren't exclusive to aumentative/diminutives and some words just happen to have them. Someone's inevitably going to come over and tell me there are mnemonics and rules you can use to be able to tell those without memorization, but they all have as many exceptions' as use cases so they're useless.
>Deal with pseudointellectuals.
Being good at portuguese is almost universally treated as being smart, but that's no different from calling a person smart because they can make fart noises in many different ways. There are people who spent years of their lives perfecting the art of sounding smart while not actually being smart, and this is stupid because you can get discriminated for having poor portuguese. It can backfire and you can get mocked for sounding like an edgelord aswell. There are many cases of people who don't get jobs they are qualified for because they didn't speak the newest version of formal portuguese, and they are also universally rejected by people who don't speak the newest version of formal portuguese either. This falls into the next point, but it's good to say it because no other language has this nonsense in the level of portuguese.
>Deal with portuguese speakers.
Once you learn portuguese you'll have to deal with portuguese speakers for life unless you never speak the language, which defeats the purpose of learning it. There isn't a single person who doesn't also speak something else that you would want to talk to anyway, if you think the Albertos/Cleyssons on imageboards are bad you haven't seen the ones who are unable to shitpost in gringo imageboards. There isn't much portuguese media of value either, so if you're not going to speak portuguese the little benefit you could gain from the language is lost.