For me, online friendships are much better and definitely more real than irl friendships. I'm a very quiet and socially awkward person who doesn't really like being around people much irl. I don't like going out to social events or things like that at all. I also have difficulties with the subtleties of human interaction, and things like slight tonal changes in the voice or little ticks/gestures will be completely lost on me. I also take a lot of time to figure out what to say in any given context, but it takes me longer in face to face interactions because there end up being too many stimuli for me to collect my thoughts quickly or easily, so there tend to be a lot of awkward silences. Furthermore, I can't really ever bring myself to talk about how I'm feeling out loud. I don't know why, I just have to be the tough guy, I guess, so I just bottle things up irl and never really start to trust people because I just don't get the right kind of interactions with them to do so.
Online works out better though, because I can start getting to know someone in a more comfortable environment (like alone in my room). I can also use the written word to communicate, which I am unquestionably more efficient with than the spoken word, which means I can respond quicker and in a more coherent way. This means people can actually learn a bit of something that's going on in my head, unlike irl. There are fewer subtleties to miss with text, and I can actually express my feelings this way. Which all means that the people I meet online actually get to know me, and consequently I actually get to know them. Considering I dislike speaking aloud at all and dislike physical contact in most cases, online friendships work out much better for me than irl ones, and I have made some really great friends online over the years, whereas my irl friends and I have all drifted apart, in spite of social media.
That said, ideally I'd meet people online and after coming to trust them, we could become irl friends too. Then the issues I have with irl interaction would be easier to manage. But that requires free time and funding, both of which can be pretty difficult to come by.