Properly set up, no reason you can't web browse on a RPi4... two things to consider though: the amount of RAM, and how RAM-hungry Firefox is. Forget about any version below 4GB. And even with that... when you see how much RAM Firefowx can gobble up with a few tabs open, you'll quickly run out of RAM. That's more a RAM problem than raw performance
Yes, with 4GB and more RPI4 and RPI5 allows you to read text web sites with no issue. But there is a lack of HD video playback in browser. It is pretty usable for youtube with 480p, but 720p has lags, frame drops and artifacts, 1080p is even worse. 1080p is playable on youtube, but you will notice a lot of frame drops, blurred and crumbling picture for dynamic scenes. And there is a big problem with video playback even with low resolution on some modern web sites, like telegram. It starts to lagging even if you don't playing video, just mouse cursor starts jerky moving and text scrolling is jittery.
It can play offline video files with 1080p resolution up to 60 fps with VLC or MPV player with hw acceleration, but video file needs to be encoded with H265 HEVC codec. H264 AVC1 also supported, but max playable resolution is 1080p up to 30 fps. With 60 fps it starts to lagging.
There are also some issues with apps. On raspios Bullseye there is a big issue with screen tearing and low graphics performance. On raspios Bookworm screen tearing and graphics performance is fixed but there are a new issues with window positioning and sizing due to switching on Waylaynd/wayfire, it works with great speed and with smooth graphics, but Xwayland don't implement some functions like XMoveWindow, so it leads to window layout issues for apps which using dynamic window collapse/expanding/repositioning, like context menu, video players, messengers, etc.
Ubuntu works good, but has 3x times lower graphics performance than raspios Bookworm and 2x times lower performance than raspios Bullseye. Firefox on Ubuntu works a little bit laggy even for text web sites.
So, RPI4 and RPI5 is nice machine for a text browsing, but if you're planning some home media center there is a lack of HD video playback support, so if you want to use it with large HD or UHD display there is a sense to looking for something more powerful.
Regarding to RPI5, I don't have it to test, but I read many review and resposnes about it and I'm not sure if it worth to replace RPI4 with RPI5, because RPI5 has higher power requirements, and despite the fact that it has twice faster CPU with hw cryptoextensions but it still not enough to support UHD displays and play UHD videos. So, my impressions are contradictory about it. I think it will be nice as a low power home server, but as a desktop it depends on what you're planning to run...
I'm interesting to test Orange Pi 5 for comparison, according to some videos it can better play HD and UHD videos and has better OpenGL performance, but I'm not sure... At least it shows twice higher glmark2 performance, if this is true, then I think it may be a better choice as desktop or media center replacement.
If your very patient even the original b model can browse the web
it depends on what site you're want to browse. It lags like hell when scrolling telegram page with videos, also google maps is slow, graphics games in browser are unplayable due to very low speed.
I know this is not high power station with powerful GPU, but modern smartphones allows to play it very well and smooth. So unable to play it on a new modern SBC looks a little bit strange...
But there is needs to say that for many text web sites it works well, I'm using it every day and I wrote this message on rpi4