Lots to consider. You will probably have to go down to a 2.5 inch bore or up to a 3. As already stated you can bush the pin if need be. 1" stop collars make pretty good spacers if you need to shim the sides. When I used generic cylinders on my loader I had to trim an 1/8" off each side of the head end tubes and used a stop collar on each side of the rod end. I might could have found a closer fit in a tang instead of the cross type I used but I was having new hoses made anyway.
In addition to bore and pin size you need to consider:
Retracted length
Extended length
port size
port location (side or top)
I bought my cylinders from Magister Hydraulics. US stock and fast, free, shipping.
Magister Hydraulics