Ancistrus or snails for cleaning glass in an aquarium?

I want the aquarium to have a resident who will periodically clean its walls. Who do you recommend: Ancistrus catfish or snails? What will be better?

We had a catfish - it stuck. The 50-liter aquarium was always clean, without greenery. True, I still changed the water every 3-4 months. But the snails multiply very quickly, so they will have to be thrown out. And they are alive.........