That's my point. Down 2 there, you're playing reasonably for a tie (quick foul, hope the shooter misses one, get lucky with a forced 3) and thus OT. If you think your walk on is just as capable as some of the bigs at giving a foul -- which no one here disagrees with -- putting him in was fine.
As this thread has shown since I commented on your post, the problem was the combination of an unusual result (the forced 5 second violation) with neither the refs nor the UConn staff understanding the rule that you could take him right back out before the offensive possession.