A bank can’t require you to open an account to cash a check from that bank
I had this happen to me 25 years ago with Wells Fargo. I was on vacation and had a check drawn on the branch I was standing in front of - and foolishly thought it easier to cash it right the and there than wait to get home and deposit it. Boy was I wrong.
I’d also done this once or twice as an actual child in the early 90s and then it was not a problem.