Should I do my 2d plataformer with raycast or rigidbody?

So I am deciding if I should do my 2d platformer with a rigidbody or with raycasting.

From what I know the raycasting is more smooth and better control etc.
But rigidbody would allow me to interact with physics etc.

So witch one should I use?

I would use rigidbody because you will have more control over it and more possibilities. With the raycast you will have to handle lots of corner cases and it’s more hard to debug. Of course it depends on the project (if it’s very simple, maybe reycast is better).

Raycasts will allow you to have more direct control over the controls and gameplay feel but it’s harder to implement especially if you want good physics interactions. If you are making a game with more Meat Boy style controls you need raycasts but if you are making a game with more Little Big Planet style controls use Rigidbodies.