Optimizing Controllable Text Generation: A Comparative Study of Alignment Strategies and Inference-Time Scaling