Lambdas are billed based on the execution time. So if you have infrequent and short execution time, lambdas are a good fit.
But if you have long running and CPU intensive execution, EC2 might be cheaper. Again, it depends on the use case.
It would be interesting to know more about your side project. It's pretty cool that you've something.